Skip to content

Commit 735daa4

Browse files
authored
Merge pull request #185 from tonerdo/submit-code-coverage
Submit code coverage to CodeCov
2 parents 7c44cea + ed9de3d commit 735daa4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Diff for: appveyor.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ configuration:
66
- Debug
77
- Release
88
build_script:
9-
- ps: echo "Building for $env:CONFIGURATION"
9+
- ps: echo "Building for $env:CONFIGURATION on $env:APPVEYOR_BUILD_WORKER_IMAGE"
1010
- ps: dotnet msbuild build.proj /p:Configuration=$env:CONFIGURATION
1111
test_script:
12-
- ps: if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
12+
- ps: if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
13+
- ps: |
14+
if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Ubuntu" -and $env:CONFIGURATION -eq "Release") {
15+
curl -s https://codecov.io/bash > codecov
16+
chmod +x codecov
17+
./codecov -f ./test/coverlet.core.tests/coverage.opencover.xml
18+
}

0 commit comments

Comments
 (0)