test_ok2/scripts/upload-coverage.bat

17 lines
581 B
Batchfile
Raw Normal View History

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
2019-02-26 07:27:45 +08:00
if defined CODECOV_TOKEN (
echo CODECOV_TOKEN defined
) else (
echo CODECOV_TOKEN NOT defined
)
python -m pip install codecov
coverage combine
coverage xml --ignore-errors
coverage report -m --ignore-errors
scripts\retry codecov --required -X gcov pycov search -f coverage.xml --flags windows
) else (
echo Skipping coverage upload, PYTEST_NO_COVERAGE is set
)