-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathappveyor.yml
More file actions
52 lines (43 loc) · 1.36 KB
/
appveyor.yml
File metadata and controls
52 lines (43 loc) · 1.36 KB
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
os:
- Visual Studio 2017
environment:
CoverityProjectToken:
secure: MZmARnzmRhTF743Xy+O1yOt9nIxnKiU6fA0vj+G2u0s=
CoverityNotificationEmail:
secure: owEKixY5H4KyQUZ3NCsb8yHTPmle5BZ+JRqfCMCzMjg=
build:
verbosity: detailed
before_build:
- cd net
- nuget restore
- cd ..
build_script:
- ps: |
if ($env:APPVEYOR_REPO_BRANCH -eq "develop") {
& cd net
& cov-build.exe --dir cov-int msbuild `
"/m" `
"/l:C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" `
"/p:Configuration=Debug" `
"simon-speck-net.sln"
nuget install -ExcludeVersion PublishCoverity
Write-Host "Compressing Coverity results..."
& PublishCoverity\tools\PublishCoverity.exe compress `
--nologo `
-i "$env:APPVEYOR_BUILD_FOLDER\net\cov-int" `
-o "$env:APPVEYOR_BUILD_FOLDER\coverity.zip" `
--overwrite
Write-Host "Uploading Coverity results..."
$version = Get-Date -format s
& PublishCoverity\tools\PublishCoverity.exe publish `
--nologo `
-t $env:CoverityProjectToken `
-e $env:CoverityNotificationEmail `
-r "Naruto/simon-speck-net" `
-z $env:APPVEYOR_BUILD_FOLDER\coverity.zip `
-d "Appveyor build." `
--codeVersion "$version"
& cd ..
} else {
& ./scripts/build.bat
}