2018-09-02 21:22:20 +08:00
|
|
|
REM script called by AppVeyor to combine and upload coverage information to codecov
|
|
|
|
if not defined PYTEST_NO_COVERAGE (
|
|
|
|
echo Prepare to upload coverage information
|
|
|
|
C:\Python36\Scripts\pip install codecov
|
|
|
|
C:\Python36\Scripts\coverage combine
|
|
|
|
C:\Python36\Scripts\coverage xml --ignore-errors
|
|
|
|
C:\Python36\Scripts\coverage report -m --ignore-errors
|
2018-11-26 21:35:34 +08:00
|
|
|
scripts\appveyor-retry C:\Python36\Scripts\codecov --required -X gcov pycov search -f coverage.xml --flags %TOXENV:-= % windows
|
2018-09-02 21:22:20 +08:00
|
|
|
) else (
|
|
|
|
echo Skipping coverage upload, PYTEST_NO_COVERAGE is set
|
|
|
|
)
|