@@ -24,12 +24,9 @@ environment:
2424 coverity_email :
2525 secure : eGVilNg1Yuq+Xj+SW8r3WCtjnzhoDV0sNJkma4NRq7A=
2626 matrix :
27- - xunit_runner : xunit.console.x86.exe
28- Arch : 32
29- publish_on_success : False
30- - xunit_runner : xunit.console.exe
31- Arch : 64
32- publish_on_success : True
27+ - publish_on_success : False
28+ ExtraDefine : LEAKS_IDENTIFYING
29+ - publish_on_success : True
3330
3431matrix :
3532 fast_finish : true
@@ -56,6 +53,9 @@ install:
5653 Write-Host "Should run Coveralls = " -NoNewLine
5754 Write-Host $Env:SHOULD_RUN_COVERALLS -ForegroundColor "Green"
5855
56+ Write-Host "Identifying leaks = " -NoNewLine
57+ Write-Host ($Env:ExtraDefine -eq "LEAKS_IDENTIFYING") -ForegroundColor "Green"
58+
5959 Write-Host "Should publish on success = " -NoNewLine
6060 Write-Host $Env:publish_on_success -ForegroundColor "Green"
6161
@@ -80,25 +80,27 @@ build_script:
8080- ps : |
8181 msbuild "$Env:APPVEYOR_BUILD_FOLDER\LibGit2Sharp.sln" `
8282 /nologo /verbosity:minimal /fl /flp:verbosity=normal `
83- /property:ExtraDefine="LEAKS_IDENTIFYING" `
8483 /t:build,pack
8584
8685test_script :
8786- ps : |
88- If ($Env:SHOULD_RUN_COVERALLS -eq $True -and $Env:publish_on_success -eq $True)
89- {
90- .\packages\OpenCover\tools\OpenCover.Console.exe `
91- -register:user `
92- "-target:""$Env:userprofile\.nuget\packages\xunit.runner.console\2.2.0\tools\$Env:xunit_runner""" `
93- "-targetargs:""$Env:APPVEYOR_BUILD_FOLDER\bin\LibGit2Sharp.Tests\Release\net46\LibGit2Sharp.Tests.dll"" -noshadow" `
94- "-filter:+[LibGit2Sharp]* -[LibGit2Sharp.Tests]*" `
95- -hideskipped:All `
96- -output:opencoverCoverage.xml
97- }
98- ElseIf ($Env:SHOULD_RUN_COVERITY_ANALYSIS -eq $False)
87+ Foreach ($runner in 'xunit.console.exe','xunit.console.x86.exe')
9988 {
100- & "$Env:userprofile\.nuget\packages\xunit.runner.console\2.2.0\tools\$Env:xunit_runner" `
101- "$Env:APPVEYOR_BUILD_FOLDER\bin\LibGit2Sharp.Tests\Release\net46\LibGit2Sharp.Tests.dll" -noshadow
89+ If ($Env:SHOULD_RUN_COVERALLS -eq $True -and $Env:publish_on_success -eq $True)
90+ {
91+ .\packages\OpenCover\tools\OpenCover.Console.exe `
92+ -register:user `
93+ "-target:""$Env:userprofile\.nuget\packages\xunit.runner.console\2.2.0\tools\$runner""" `
94+ "-targetargs:""$Env:APPVEYOR_BUILD_FOLDER\bin\LibGit2Sharp.Tests\Release\net46\LibGit2Sharp.Tests.dll"" -noshadow" `
95+ "-filter:+[LibGit2Sharp]* -[LibGit2Sharp.Tests]*" `
96+ -hideskipped:All `
97+ -output:opencoverCoverage.xml
98+ }
99+ ElseIf ($Env:SHOULD_RUN_COVERITY_ANALYSIS -eq $False)
100+ {
101+ & "$Env:userprofile\.nuget\packages\xunit.runner.console\2.2.0\tools\$runner" `
102+ "$Env:APPVEYOR_BUILD_FOLDER\bin\LibGit2Sharp.Tests\Release\net46\LibGit2Sharp.Tests.dll" -noshadow
103+ }
102104 }
103105
104106 - dotnet test LibGit2Sharp.Tests/LibGit2Sharp.Tests.csproj -f netcoreapp1.0 --no-build
@@ -137,11 +139,15 @@ after_test:
137139 cat .\curl-out.txt
138140 }
139141
140- artifacts :
141- - path : ' **\bin\**\*.nupkg'
142- name : NuGet Package
143- - path : msbuild.log
144- name : Build log
142+ on_finish :
143+ - ps : Push-AppveyorArtifact "msbuild.log"
144+
145+ on_success :
146+ - ps : |
147+ if ($Env:publish_on_success -eq $True)
148+ {
149+ Get-ChildItem "bin\LibGit2Sharp\$env:configuration\*.nupkg" |% { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
150+ }
145151
146152notifications :
147153- provider : Email
0 commit comments