Skip to content

Commit f23532c

Browse files
committed
fixup! Make AppVeyor run Coverity scan
1 parent 5986c54 commit f23532c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

appveyor.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,18 @@ build_script:
6262
- 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:
65-
- '%xunit_runner% "%APPVEYOR_BUILD_FOLDER%\LibGit2Sharp.Tests\bin\Release\LibGit2Sharp.Tests.dll" /appveyor'
65+
- REM '%xunit_runner% "%APPVEYOR_BUILD_FOLDER%\LibGit2Sharp.Tests\bin\Release\LibGit2Sharp.Tests.dll" /appveyor'
6666
- IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
6767

6868
on_success:
6969
- ps: |
70-
& "$env:APPVEYOR_BUILD_FOLDER\nuget.package\BuildNugetPackage.ps1" -commitSha "$env:APPVEYOR_REPO_COMMIT" -postBuild { sourcelink index -pr LibGit2Sharp.csproj -pp Configuration Release -nf Core\NativeDllName.cs -nf Core\UniqueIdentifier.cs -nf Properties\AssemblyInfo.cs -r .. -u 'https://raw.githubusercontent.com/libgit2/libgit2sharp/{0}/%var2%' }
70+
# & "$env:APPVEYOR_BUILD_FOLDER\nuget.package\BuildNugetPackage.ps1" -commitSha "$env:APPVEYOR_REPO_COMMIT" -postBuild { sourcelink index -pr LibGit2Sharp.csproj -pp Configuration Release -nf Core\NativeDllName.cs -nf Core\UniqueIdentifier.cs -nf Properties\AssemblyInfo.cs -r .. -u 'https://raw.githubusercontent.com/libgit2/libgit2sharp/{0}/%var2%' }
7171
# Add-Type -Path "$env:APPVEYOR_BUILD_FOLDER\LibGit2Sharp\bin\Release\LibGit2Sharp.dll"
7272
# Write-Host "LibGit2Sharp version = $([LibGit2Sharp.GlobalSettings]::Version)" -ForegroundColor "Magenta"
73-
If ($Env:SHOULD_PUBLISH_NUGET_ARTIFACT -eq $True)
74-
{
75-
Get-ChildItem "$env:APPVEYOR_BUILD_FOLDER\LibGit2sharp\*.nupkg" | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
76-
}
73+
# If ($Env:SHOULD_PUBLISH_NUGET_ARTIFACT -eq $True)
74+
# {
75+
# Get-ChildItem "$env:APPVEYOR_BUILD_FOLDER\LibGit2sharp\*.nupkg" | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
76+
# }
7777
If ($Env:SHOULD_PUBLISH_NUGET_ARTIFACT -eq $False)
7878
{
7979
Remove-Item -Recurse -Force (Join-Path $env:APPVEYOR_BUILD_FOLDER "LibGit2sharp/bin")
@@ -83,15 +83,15 @@ on_success:
8383
8484
& nuget install PublishCoverity -Version 0.9.0 -ExcludeVersion -OutputDirectory .\packages
8585
86-
Write-Host "Building project with Coverity..."
86+
Write-Host -ForegroundColor "Green" "Building project with Coverity..."
8787
& 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"
88-
Write-Host "Compressing Coverity results..."
88+
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 "Uploading Coverity results..."
94+
Write-Host -ForegroundColor "Green" "Uploading Coverity results... $env:coverity_email"
9595
& .\packages\PublishCoverity\PublishCoverity.exe publish `
9696
-t "$env:coverity_token" `
9797
-e "$env:coverity_email" `

0 commit comments

Comments
 (0)