Merge pull request #571 from tahoe-lafs/3000.windows-coverage

Report code coverage from Windows CI

Fixes: ticket:3000
This commit is contained in:
Jean-Paul Calderone 2019-03-15 13:25:37 -04:00 committed by GitHub
commit 135462ccd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -48,9 +48,9 @@ test_script:
# Put your test command here. # Put your test command here.
# Note that you must use the environment variable %PYTHON% to refer to # Note that you must use the environment variable %PYTHON% to refer to
# the interpreter you're using - Appveyor does not do anything special # the interpreter you're using - Appveyor does not do anything special
# to put the Python evrsion you want to use on PATH. # to put the Python version you want to use on PATH.
- | - |
%PYTHON%\Scripts\tox.exe -e py %PYTHON%\Scripts\tox.exe -e coverage
after_test: after_test:
# This builds the main tahoe wheel, and wheels for all dependencies. # This builds the main tahoe wheel, and wheels for all dependencies.
@ -63,6 +63,10 @@ after_test:
rd /s /q _trial_temp rd /s /q _trial_temp
%PYTHON%\python.exe setup.py bdist_wheel %PYTHON%\python.exe setup.py bdist_wheel
%PYTHON%\python.exe -m pip wheel -w dist . %PYTHON%\python.exe -m pip wheel -w dist .
- |
%PYTHON%\python.exe -m pip install codecov coverage
%PYTHON%\python.exe -m coverage xml -o coverage.xml -i
%PYTHON%\python.exe -m codecov -X search -X gcov -f coverage.xml
artifacts: artifacts:
# bdist_wheel puts your built wheel in the dist directory # bdist_wheel puts your built wheel in the dist directory

0
newsfragments/3000.minor Normal file
View File