diff --git a/appveyor.yml b/appveyor.yml index 8d53f1fe3..c65bdfe9c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -6,7 +6,13 @@ configuration: - Debug - Release build_script: - - ps: echo "Building for $env:CONFIGURATION" + - ps: echo "Building for $env:CONFIGURATION on $env:APPVEYOR_BUILD_WORKER_IMAGE" - ps: dotnet msbuild build.proj /p:Configuration=$env:CONFIGURATION test_script: - - ps: if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } \ No newline at end of file + - ps: if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } + - ps: | + if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Ubuntu" -and $env:CONFIGURATION -eq "Release") { + curl -s https://codecov.io/bash > codecov + chmod +x codecov + ./codecov -f ./test/coverlet.core.tests/coverage.opencover.xml + }