Skip to content

Commit 0b2399a

Browse files
committed
fixup! Make AppVeyor run Coverity scan
1 parent f899142 commit 0b2399a

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

appveyor.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ before_build:
5959
- nuget restore "%APPVEYOR_BUILD_FOLDER%\LibGit2Sharp.sln"
6060

6161
build_script:
62-
- msbuild "%APPVEYOR_BUILD_FOLDER%\LibGit2Sharp.sln" /verbosity:normal /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /property:ExtraDefine="LEAKS_IDENTIFYING"
62+
- cov-build.exe --dir cov-int msbuild "%APPVEYOR_BUILD_FOLDER%\LibGit2Sharp.sln" /verbosity:normal /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /property:ExtraDefine="LEAKS_IDENTIFYING"
6363

6464
test_script:
6565
- REM '%xunit_runner% "%APPVEYOR_BUILD_FOLDER%\LibGit2Sharp.Tests\bin\Release\LibGit2Sharp.Tests.dll" /appveyor'
@@ -83,26 +83,30 @@ on_success:
8383
8484
& nuget install PublishCoverity -Version 0.9.0 -ExcludeVersion -OutputDirectory .\packages
8585
86-
Write-Host -ForegroundColor "Green" "Building project with Coverity..."
87-
& cov-build.exe --dir cov-int "C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe" $env:APPVEYOR_BUILD_FOLDER\LibGit2Sharp.sln /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
86+
# Write-Host -ForegroundColor "Green" "Building project with Coverity..."
87+
# & cov-build.exe --dir cov-int "C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe" $env:APPVEYOR_BUILD_FOLDER\LibGit2Sharp.sln /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
8888
Write-Host -ForegroundColor "Green" "Compressing Coverity results..."
8989
9090
& .\packages\PublishCoverity\PublishCoverity.exe compress `
9191
-i "$env:APPVEYOR_BUILD_FOLDER\cov-int" `
9292
-o "$env:APPVEYOR_BUILD_FOLDER\$env:APPVEYOR_PROJECT_NAME.zip" `
9393
--overwrite
94-
Write-Host -ForegroundColor "Green" "Uploading Coverity results... $env:coverity_email"
95-
& .\packages\PublishCoverity\PublishCoverity.exe publish `
96-
-t "$env:coverity_token" `
97-
-e "$env:coverity_email" `
98-
-r "$env:APPVEYOR_REPO_NAME" `
99-
-z "$env:APPVEYOR_BUILD_FOLDER\$env:APPVEYOR_PROJECT_NAME.zip" `
100-
-d "CI server scheduled build." `
101-
--codeVersion "$Env:ASSEMBLY_INFORMATIONAL_VERSION"
94+
# Write-Host -ForegroundColor "Green" "Uploading Coverity results... $env:coverity_email"
95+
# & .\packages\PublishCoverity\PublishCoverity.exe publish `
96+
# -t "$env:coverity_token" `
97+
# -e "$env:coverity_email" `
98+
# -r "$env:APPVEYOR_REPO_NAME" `
99+
# -z "$env:APPVEYOR_BUILD_FOLDER\$env:APPVEYOR_PROJECT_NAME.zip" `
100+
# -d "CI server scheduled build." `
101+
# --codeVersion "$Env:ASSEMBLY_INFORMATIONAL_VERSION"
102102
}
103103
104104
artifacts:
105105
- path: cov-int\build-log.txt
106+
name: coverity.build.logger
107+
108+
- path: cov-int\LibGit2Sharp.zip
109+
name: coverity.analysis
106110

107111
notifications:
108112
- provider: Email

0 commit comments

Comments
 (0)