Skip to content

Commit fefb90a

Browse files
committed
upload coverage results to codecov on Ubuntu image
1 parent 7c44cea commit fefb90a

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") {
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)