-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathappveyor.yml
76 lines (56 loc) · 2.02 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Appveyor Options http://www.appveyor.com/docs/appveyor-yml
# Appveyor Environment Variables https://www.appveyor.com/docs/environment-variables/
version: 1.1.0.{build}
os: WMF 5
max_jobs: 1
branches:
only:
- master
#skip_non_tags: true
build: false # disable MSBuild
environment:
PSGALLERY_API_KEY:
secure: TO/Slq79myoBRfUTivNSeScz0nRWFlFp0JMiImdmHVZLsSa349qCi98nm29e6uGC
GITHUB_API_KEY:
secure: jmTiAdpCVvSrW0a0kDpC+ucDk4WSnSiNJhpVbsE+FKx1ZwzB189RUmFvnbgkBGBw
GITHUB_USERNAME:
secure: WbMc18DNWPRELk0QTnab0Q==
appveyor_rdp_password:
secure: CC+F6/yXM5KgZMVnjjHyBIaw8aK8oOCYipXqGfQUHEE=
NOTIFY_EMAIL:
secure: xxzrryH1TErXFSjxmYszGA==
init:
- ps: |
git config --global core.autocrlf input
# iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
install:
- git --version
- choco --version
- ps: |
git config --global credential.helper store
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:GITHUB_API_KEY):[email protected]`n"
.\Initialize-Build.ps1
build_script:
- ps: |
if ($env:APPVEYOR_REPO_TAG -eq 'true' -and $env:APPVEYOR_REPO_TAG_NAME -match "(?<version>[\d\.]+)") {
Update-Manifest -Path .\source\PSTodoTxt.psd1 -PropertyName moduleversion -Value $matches.version
}
.\build.ps1 -Task build
test_script:
- ps: |
if ($env:APPVEYOR_REPO_TAG -eq 'true' -and $env:APPVEYOR_REPO_TAG_NAME -match "(?<version>[\d\.]+)") {
Update-Manifest -Path .\source\PSTodoTxt.psd1 -PropertyName moduleversion -Value $matches.version
}
.\build.ps1 -Task test
deploy_script:
- ps: |
if ($env:APPVEYOR_REPO_TAG -eq 'true') {
.\build.ps1 -Task publish
}
else {
Write-Host 'Commit not a tag - not deploying.'
}
test:
deploy:
on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))