Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2015-06-06 15:41:40 +0300
committernulltoken <emeric.fermas@gmail.com>2015-06-06 21:15:32 +0300
commitf59d586a37f8ffe64e4e902ecc1293cf8df8e078 (patch)
tree65c6a613f6299af808933a02cae4b8ac998793da
parentef60b2a4c5b525ee1800bba5f60aea4f1dbb76ef (diff)
Make AppVeyor run Coverity scan
-rw-r--r--appveyor.yml74
1 files changed, 55 insertions, 19 deletions
diff --git a/appveyor.yml b/appveyor.yml
index 681b7c76..11076840 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -10,6 +10,10 @@ skip_tags: true
clone_folder: C:\projects\libgit2sharp
environment:
+ coverity_token:
+ secure: nuzUT+HecXGIi3KaPd/1hgFEZJan/j6+oNbPV75JKjk=
+ coverity_email:
+ secure: eGVilNg1Yuq+Xj+SW8r3WCtjnzhoDV0sNJkma4NRq7A=
version : 0.22.0
matrix:
- xunit_runner: xunit.console.clr4.exe
@@ -43,6 +47,9 @@ install:
$Env:SHOULD_PUBLISH_NUGET_ARTIFACT = $ShouldPublishNugetArtifact
Write-Host "Should publish Nuget artifact = $Env:SHOULD_PUBLISH_NUGET_ARTIFACT"
+ $Env:SHOULD_PUBLISH_COVERITY_ANALYSIS = $($Env:APPVEYOR_SCHEDULED_BUILD -eq $True)
+ Write-Host "Should publish Coverity analysis = $Env:SHOULD_PUBLISH_COVERITY_ANALYSIS"
+
cinst sourcelink -y
assembly_info:
@@ -59,30 +66,59 @@ before_build:
- ps: nuget restore "$Env:APPVEYOR_BUILD_FOLDER\LibGit2Sharp.sln"
build_script:
-- msbuild "%APPVEYOR_BUILD_FOLDER%\LibGit2Sharp.sln" /verbosity:normal /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /property:ExtraDefine="LEAKS_IDENTIFYING"
+- ps: |
+ & cov-build.exe --dir cov-int msbuild "$Env:APPVEYOR_BUILD_FOLDER\LibGit2Sharp.sln" `
+ /verbosity:normal `
+ /p:Configuration=Release `
+ /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" `
+ /property:ExtraDefine="LEAKS_IDENTIFYING"
test_script:
-- ps: & "$Env:xunit_runner" "$Env:APPVEYOR_BUILD_FOLDER\LibGit2Sharp.Tests\bin\Release\LibGit2Sharp.Tests.dll" /appveyor
+- ps: |
+ If ($Env:SHOULD_PUBLISH_COVERITY_ANALYSIS -eq $False)
+ {
+ & "$Env:xunit_runner" "$Env:APPVEYOR_BUILD_FOLDER\LibGit2Sharp.Tests\bin\Release\LibGit2Sharp.Tests.dll" /appveyor
+ }
-on_success:
+after_test:
- ps: |
- & "$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%' }
-
- Add-Type -Path "$Env:APPVEYOR_BUILD_FOLDER\LibGit2Sharp\bin\Release\LibGit2Sharp.dll"
- Write-Host "LibGit2Sharp version = $([LibGit2Sharp.GlobalSettings]::Version)" -ForegroundColor "Magenta"
-
- If ($Env:SHOULD_PUBLISH_NUGET_ARTIFACT -eq $True)
+ If ($Env:SHOULD_PUBLISH_COVERITY_ANALYSIS -eq $False)
+ {
+ & "$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%' }
+
+ Add-Type -Path "$Env:APPVEYOR_BUILD_FOLDER\LibGit2Sharp\bin\Release\LibGit2Sharp.dll"
+ Write-Host "LibGit2Sharp version = $([LibGit2Sharp.GlobalSettings]::Version)" -ForegroundColor "Magenta"
+
+ If ($Env:SHOULD_PUBLISH_NUGET_ARTIFACT -eq $True)
+ {
+ Get-ChildItem "$Env:APPVEYOR_BUILD_FOLDER\LibGit2sharp\*.nupkg" | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
+ }
+ }
+ Else
{
- Get-ChildItem "$Env:APPVEYOR_BUILD_FOLDER\LibGit2sharp\*.nupkg" | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
+ & nuget install PublishCoverity -Version 0.9.0 -ExcludeVersion -OutputDirectory .\packages
+
+ & .\packages\PublishCoverity\PublishCoverity.exe compress `
+ -i "$Env:APPVEYOR_BUILD_FOLDER\cov-int" `
+ -o "$Env:APPVEYOR_BUILD_FOLDER\$Env:APPVEYOR_PROJECT_NAME.zip"
+
+ & .\packages\PublishCoverity\PublishCoverity.exe publish `
+ -t "$Env:coverity_token" `
+ -e "$Env:coverity_email" `
+ -r "$Env:APPVEYOR_REPO_NAME" `
+ -z "$Env:APPVEYOR_BUILD_FOLDER\$env:APPVEYOR_PROJECT_NAME.zip" `
+ -d "CI server scheduled build." `
+ --codeVersion "$Env:ASSEMBLY_INFORMATIONAL_VERSION" `
+ --nologo
}
notifications: