@@ -16,6 +16,10 @@ environment:
16
16
Arch : 64
17
17
- xunit_runner : xunit.console.clr4.x86.exe
18
18
Arch : 32
19
+ coverity_token :
20
+ secure : nuzUT+HecXGIi3KaPd/1hgFEZJan/j6+oNbPV75JKjk=
21
+ coverity_email :
22
+ secure : eGVilNg1Yuq+Xj+SW8r3WCtjnzhoDV0sNJkma4NRq7A=
19
23
20
24
matrix :
21
25
fast_finish : true
@@ -70,6 +74,25 @@ on_success:
70
74
{
71
75
Get-ChildItem "$env:APPVEYOR_BUILD_FOLDER\LibGit2sharp\*.nupkg" | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
72
76
}
77
+ If ($Env:SHOULD_PUBLISH_NUGET_ARTIFACT -eq $False)
78
+ {
79
+ Write-Host "Building project with Coverity..."
80
+ & cov-build.exe --dir cov-int --encoding=UTF-8 "msbuild" @("%APPVEYOR_BUILD_FOLDER%\LibGit2Sharp.sln", "/p:Configuration=Release", "/logger:C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll")
81
+ & nuget install PublishCoverity -Version 0.9.0 -ExcludeVersion
82
+ Write-Host "Compressing Coverity results..."
83
+ & "$coverityPublisher" compress `
84
+ -i "$env:APPVEYOR_BUILD_FOLDER\cov-int" `
85
+ -o "$env:APPVEYOR_BUILD_FOLDER\$env:APPVEYOR_PROJECT_NAME.zip" `
86
+ --overwrite
87
+ Write-Host "Uploading Coverity results..."
88
+ & "$coverityPublisher" publish `
89
+ -t "$env:coverity_token" `
90
+ -e "$env:coverity_email" `
91
+ -r "$env:APPVEYOR_REPO_NAME" `
92
+ -z "$env:APPVEYOR_BUILD_FOLDER\$env:APPVEYOR_PROJECT_NAME.zip" `
93
+ -d "CI server scheduled build." `
94
+ --codeVersion "$Env:ASSEMBLY_INFORMATIONAL_VERSION"
95
+ }
73
96
74
97
notifications :
75
98
- provider : Email
0 commit comments