Skip to content
This repository was archived by the owner on Feb 4, 2020. It is now read-only.

Commit 493350b

Browse files
author
Frerich Raabe
committed
Fixed uploading code coverage information
All attempts to upload code coverage information only resulted in Error: No coverage report found being printed. As it turns out, it appears that automatically locating all generated report files is disabled in case AppVeyor is detected as the CI system. However, reading the codecov source code suggests that we can pass '-f' to explicitely select a file for uploading, so let's do that.
1 parent 7508436 commit 493350b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ test_script:
9696
$wc = New-Object 'System.Net.WebClient'
9797
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\unittests.xml))
9898
99-
& codecov --no-color -X gcov -F unittests -e PYTHON_INSTALL
99+
& codecov --no-color -X gcov -F unittests -e PYTHON_INSTALL -f coverage.xml
100100
101101
if ($testsExitCode -ne 0) {exit $testsExitCode}
102102
@@ -113,7 +113,7 @@ test_script:
113113
$wc = New-Object 'System.Net.WebClient'
114114
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\integrationtests.xml))
115115
116-
& codecov --no-color -X gcov -F integrationtests_memcached -e PYTHON_INSTALL
116+
& codecov --no-color -X gcov -F integrationtests_memcached -e PYTHON_INSTALL -f coverage.xml
117117
118118
if ($testsExitCode -ne 0) {exit $testsExitCode}
119119

0 commit comments

Comments
 (0)