forked from OpenCover/opencover
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
105 lines (104 loc) · 3.03 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
version: 4.6.{build}
skip_tags: true
os: Visual Studio 2015
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: DSwAr4fYt3Q35Sjob5qAN5ujYqFCPZQguJ2yhI3IN46AIK63sRLhpamof6BZr9lx
DRDUMP_TOKEN:
secure: 16PEs46poxfT7drt6BdHSHPPzAymXBYrIaqoAsHvY49os5Azz4rNTp3QaUhtITZ+
cache:
- build/Version/opencover.snk
- build/Version/opencover.public.snk
nuget:
disable_publish_on_pr: true
before_build:
- appveyor-retry dotnet restore -v Minimal
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
}
test: off
artifacts:
- path: main/bin/installer/*.msi
name: Installer
- path: main/bin/zip/*.zip
name: ZipArchive
- 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.portable/*.nupkg
name: ChocolateyPortable
deploy:
- provider: NuGet
api_key:
secure: yew/4xjmqdUs1U//LNGQjjMgB3JVantsz09C2LxmKaLXuG1gEsWJl+Nd+VRmB3TM
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: 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
api_key:
secure: yew/4xjmqdUs1U//LNGQjjMgB3JVantsz09C2LxmKaLXuG1gEsWJl+Nd+VRmB3TM
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: bMPwiJusZ78qab84M/zNAxmpMSCW11eaJI3czwnDzl8tK/9u3y4w38+2WOVkNeOg
artifact: Installer, ZipArchive
prerelease: true
on:
branch: rc
- provider: GitHub
tag: $(appveyor_build_version)
release: OpenCover (Release) $(appveyor_build_version)
auth_token:
secure: bMPwiJusZ78qab84M/zNAxmpMSCW11eaJI3czwnDzl8tK/9u3y4w38+2WOVkNeOg
artifact: Installer, ZipArchive
on:
branch: release
notifications:
- provider: Webhook
url: https://webhooks.gitter.im/e/700bdb95a55f23095db9
on_build_success: true
on_build_failure: true
on_build_status_changed: true
on_success:
- ps: >-
if (-Not $env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_SCHEDULED_BUILD -ne "True" -and $env:APPVEYOR_REPO_BRANCH -ne "coverity") {
& .\build.bat sonarqube-build
} else {
& .\build.bat dogfood-release
}