From 76344be07569f7791d09a4b0f1fd1b63217bb99f Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Tue, 18 Sep 2018 09:18:46 -0500 Subject: [PATCH 1/3] Build debug and release configurations on AppVeyor --- appveyor.yml | 16 +++++++++++++--- docs/index.html | 2 +- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 535e1c2..9d190f9 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -2,6 +2,9 @@ version: '{build}' image: Visual Studio 2017 init: - git config --global core.autocrlf true +configuration: +- Debug +- Release before_build: - nuget restore build: @@ -9,10 +12,17 @@ build: verbosity: minimal test_script: - cd build -- ps: .\opencover-report.ps1 -Debug -NoBuild -NoReport -AppVeyor +- ps: | + if ($env:Configuration -eq 'Debug') { + .\opencover-report.ps1 -Debug -NoBuild -NoReport -AppVeyor + if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } + ..\packages\Codecov.1.0.1\tools\codecov.exe -f '..\build\OpenCover.Reports\OpenCover.DocumentationAnalyzers.xml' + } else { + .\opencover-report.ps1 -NoBuild -NoReport -AppVeyor + if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } + } - cd .. -- .\packages\Codecov.1.0.1\tools\codecov.exe -f ".\build\OpenCover.Reports\OpenCover.DocumentationAnalyzers.xml" -- .\DocumentationAnalyzers\DocumentationAnalyzers.Status.Generator\bin\Debug\net46\DocumentationAnalyzers.Status.Generator.exe .\DocumentationAnalyzers.sln > DocumentationAnalyzers.Status.json +- .\DocumentationAnalyzers\DocumentationAnalyzers.Status.Generator\bin\%Configuration%\net46\DocumentationAnalyzers.Status.Generator.exe .\DocumentationAnalyzers.sln > DocumentationAnalyzers.Status.json cache: - packages -> **\packages.config - C:\Users\appveyor\.nuget\packages -> appveyor.yml diff --git a/docs/index.html b/docs/index.html index 93670f6..11f76f0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -173,7 +173,7 @@

Commit information