Skip to content

Commit 6dccca8

Browse files
committed
Make AppVeyor run Coverity scan
1 parent 2c98992 commit 6dccca8

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

appveyor.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ environment:
1616
Arch: 64
1717
- xunit_runner: xunit.console.clr4.x86.exe
1818
Arch: 32
19+
coverity_token:
20+
secure: nuzUT+HecXGIi3KaPd/1hgFEZJan/j6+oNbPV75JKjk=
21+
coverity_email:
22+
secure: eGVilNg1Yuq+Xj+SW8r3WCtjnzhoDV0sNJkma4NRq7A=
1923

2024
matrix:
2125
fast_finish: true
@@ -70,6 +74,25 @@ on_success:
7074
{
7175
Get-ChildItem "$env:APPVEYOR_BUILD_FOLDER\LibGit2sharp\*.nupkg" | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
7276
}
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+
}
7396
7497
notifications:
7598
- provider: Email

0 commit comments

Comments
 (0)