This repository has been archived by the owner on Nov 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 247
/
appveyor.yml
166 lines (155 loc) · 5.28 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
version: 4.7.{build}
skip_tags: true
image: Visual Studio 2019
shallow_clone: true
environment:
COVERALLS_REPO_TOKEN:
secure: A5Y5pKzc8Xf2qOCrFqYP2BWQYKif/BtlesWT/uojWfOFJj5jcSOaHP+DfwVYid09
COVERITY_TOKEN:
secure: q4yqC+X51LwoyuBcg0qvks1117rt1HwqsDErKsbLpsQ=
COVERITY_EMAIL:
secure: lgy4M/uQ9jMlxmPzTIYWVE2GggvPntq6kfpO6Z0pjAs=
SONARQUBE_TOKEN:
secure: WRLqxS8frIuLNHeSMOj6SXvR3S0gx3RM0bgGkWeglXMIPSVS/VNmfUEqdHYZ2QOB
SENTRY_AUTH_TOKEN:
secure: W0fnI9J0+0b6H0PG3qHxVNNqSveCKifDPGk3q2rWIqH2v9WGCoASqOO00wa1YD6sU9JS8iDM5on5FD3t2awm/BImRJ5ZHJV7e3pqisdb1jM=
cache:
- build/Version/opencover.snk
- build/Version/opencover.public.snk
nuget:
disable_publish_on_pr: true
install:
- ps: >-
Write-Host 'Downloading Microsoft .NET Framework 4.7.2 Developer Pack...'
$exePath = "$($env:USERPROFILE)\VSIsoShell.exe"
(New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/3/B/F/3BFB9C35-405D-45DF-BDAF-0EB57D047888/NDP472-DevPack-ENU.exe', $exePath)
Write-Host 'Installing Microsoft .NET Framework 4.7.2 Developer Pack...'
cmd /c start /wait "$exePath" /q /norestart
Write-Host 'Downloading Installing vera++1.3.0-win32...'
$exePath = "$($env:USERPROFILE)\vera++-1.3.0-win32.exe"
(New-Object Net.WebClient).DownloadFile('https://bitbucket.org/verateam/vera/downloads/vera++-1.3.0-win32.exe', $exePath)
Write-Host 'Installing vera++1.3.0-win32...'
cmd /c start /wait "$exePath" /S
before_build:
- ps: >-
#do nothing
build_script:
- ps: >-
if ($env:APPVEYOR_SCHEDULED_BUILD -eq "True" -or $env:APPVEYOR_REPO_BRANCH -eq "coverity") {
& .\build.bat create-coverity-release
} else {
& .\build.bat create-release
}
if ($LastExitCode -ne 0) {
throw "build.bat failed with exit code $LastExitCode."
}
test: off
artifacts:
- path: main/bin/installer/*.msi
name: Installer
- path: main/bin/installer/*.txt
name: InstallerHash
- path: main/bin/zip/*.zip
name: ZipArchive
- path: main/bin/zip/*.txt
name: ZipArchiveHash
- path: main/bin/packages/nuget/opencover/*.nupkg
name: Nuget
- path: main/bin/packages/nuget/opencover-rc/*.nupkg
name: NugetCandidate
- path: main/bin/packages/chocolatey/opencover/*.nupkg
name: Chocolatey
- path: main/bin/packages/chocolatey/opencover.install/*.nupkg
name: ChocolateyInstall
- path: main/bin/packages/chocolatey/opencover.portable/*.nupkg
name: ChocolateyPortable
- path: cov-int/build-log.txt
name: Coverity
- path: GenericCoverage.xml
name: cpp-coverage
- path: main/bin/release/opencovertests.xml
name: cs-coverage
deploy:
- provider: NuGet
api_key:
secure: pIYB18F1Lfq/UWtYjWH1CaKuuLc2dLHxeRwH5xO3BZsv4pMce5ETtqglUWa96TWp
skip_symbols: true
artifact: Nuget
on:
branch: release
- provider: NuGet
server: https://chocolatey.org/
api_key:
secure: BbmHnhpI/e+m2xmR/5jxmOqKbQdcYG8RuF7iWT86SbCLIxPhMotbHprgBtw8dA4n
skip_symbols: true
artifact: ChocolateyInstall
on:
branch: release
- provider: NuGet
server: https://chocolatey.org/
api_key:
secure: BbmHnhpI/e+m2xmR/5jxmOqKbQdcYG8RuF7iWT86SbCLIxPhMotbHprgBtw8dA4n
skip_symbols: true
artifact: Chocolatey
on:
branch: release
- provider: NuGet
server: https://chocolatey.org/
api_key:
secure: BbmHnhpI/e+m2xmR/5jxmOqKbQdcYG8RuF7iWT86SbCLIxPhMotbHprgBtw8dA4n
skip_symbols: true
artifact: ChocolateyPortable
on:
branch: release
- provider: NuGet
server: https://chocolatey.org/
api_key:
secure: BbmHnhpI/e+m2xmR/5jxmOqKbQdcYG8RuF7iWT86SbCLIxPhMotbHprgBtw8dA4n
skip_symbols: true
artifact: ChocolateyInstall
on:
branch: release
- provider: NuGet
api_key:
secure: pIYB18F1Lfq/UWtYjWH1CaKuuLc2dLHxeRwH5xO3BZsv4pMce5ETtqglUWa96TWp
skip_symbols: true
artifact: NugetCandidate
on:
branch: rc
- provider: GitHub
tag: $(appveyor_build_version)-rc
release: OpenCover (Release Candidiate) $(appveyor_build_version)
auth_token:
secure: T8hG3PcjoJoYaCr7ND6wFfzJdje9TYqbvBl9pFmh3EmI6relJrXzAGAooe9lBYjt
artifact: Installer, ZipArchive, InstallerHash, ZipArchiveHash
prerelease: true
on:
branch: rc
- provider: GitHub
tag: $(appveyor_build_version)
release: OpenCover (Release) $(appveyor_build_version)
auth_token:
secure: T8hG3PcjoJoYaCr7ND6wFfzJdje9TYqbvBl9pFmh3EmI6relJrXzAGAooe9lBYjt
artifact: Installer, ZipArchive, InstallerHash, ZipArchiveHash
on:
branch: release
- provider: NuGet
server: https://www.myget.org/F/opencover/api/v2/package
api_key:
secure: UOHB7ZJL44zMDE+fM0+IWJwpQSlHg27zbFG79/HshiVdoAXnpW53KMayETaO9E5K
artifact: NugetCandidate
on:
branch: master
on_success:
- ps: >-
if ($env:APPVEYOR_SCHEDULED_BUILD -ne "True" -and $env:APPVEYOR_REPO_BRANCH -ne "coverity")
{
# if (-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) {
# & .\build.bat sonarqube-build
# } else {
# & .\build.bat dogfood-release
# }
& .\build.bat dogfood-release
}
on_finish:
- ps: #$blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))