File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -2,17 +2,27 @@ version: '{build}'
22image : Visual Studio 2017
33init :
44- git config --global core.autocrlf true
5+ configuration :
6+ - Debug
7+ - Release
58before_build :
69- nuget restore
710build :
811 project : DocumentationAnalyzers.sln
912 verbosity : minimal
1013test_script :
1114- cd build
12- - ps : .\opencover-report.ps1 -Debug -NoBuild -NoReport -AppVeyor
15+ - ps : |
16+ if ($env:Configuration -eq 'Debug') {
17+ .\opencover-report.ps1 -Debug -NoBuild -NoReport -AppVeyor
18+ if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
19+ ..\packages\Codecov.1.0.1\tools\codecov.exe -f '..\build\OpenCover.Reports\OpenCover.DocumentationAnalyzers.xml'
20+ } else {
21+ .\opencover-report.ps1 -NoBuild -NoReport -AppVeyor
22+ if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
23+ }
1324 - cd ..
14- - .\packages\Codecov.1.0.1\tools\codecov.exe -f ".\build\OpenCover.Reports\OpenCover.DocumentationAnalyzers.xml"
15- - .\DocumentationAnalyzers\DocumentationAnalyzers.Status.Generator\bin\Debug\net46\DocumentationAnalyzers.Status.Generator.exe .\DocumentationAnalyzers.sln > DocumentationAnalyzers.Status.json
25+ - .\DocumentationAnalyzers\DocumentationAnalyzers.Status.Generator\bin\%Configuration%\net46\DocumentationAnalyzers.Status.Generator.exe .\DocumentationAnalyzers.sln > DocumentationAnalyzers.Status.json
1626cache :
1727 - packages -> **\packages.config
1828 - C:\Users\appveyor\.nuget\packages -> appveyor.yml
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ <h3>Commit information</h3>
173173 </ script >
174174
175175 < script type ="text/javascript ">
176- $ . getJSON ( "https://ci.appveyor.com/api/projects/sharwell/Documentationanalyzers/artifacts/DocumentationAnalyzers.Status.json?branch=master&pr=false&stream=true" , function ( data ) {
176+ $ . getJSON ( "https://ci.appveyor.com/api/projects/sharwell/Documentationanalyzers/artifacts/DocumentationAnalyzers.Status.json?branch=master&pr=false&stream=true&job=Configuration:%20Release " , function ( data ) {
177177 $ ( "#renderedDiagnostics" ) . html ( $ . templates ( $ ( "#diagnostics" ) . html ( ) ) . render ( data ) ) ;
178178 $ ( "#renderedCommitInfo" ) . html ( $ . templates ( $ ( "#commitInfo" ) . html ( ) ) . render ( data . git ) ) ;
179179 } ) ;
You can’t perform that action at this time.
0 commit comments