Skip to content

Commit 76344be

Browse files
committed
Build debug and release configurations on AppVeyor
1 parent 2a06d84 commit 76344be

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

appveyor.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,27 @@ version: '{build}'
22
image: Visual Studio 2017
33
init:
44
- git config --global core.autocrlf true
5+
configuration:
6+
- Debug
7+
- Release
58
before_build:
69
- nuget restore
710
build:
811
project: DocumentationAnalyzers.sln
912
verbosity: minimal
1013
test_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
1626
cache:
1727
- packages -> **\packages.config
1828
- C:\Users\appveyor\.nuget\packages -> appveyor.yml

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)