travis: integrate test coverage reports via codecov

This commit is contained in:
Marek Marczykowski-Górecki 2017-03-02 00:10:41 +01:00
parent 7d7f1724ff
commit 45dcc6b1dd
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
5 changed files with 8 additions and 2 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
*.pyo
build/
pkgs/
.coverage

View File

@ -21,7 +21,8 @@ matrix:
python: 2.7
after_success:
- ~/qubes-builder/scripts/travis-deploy
# - ~/qubes-builder/scripts/travis-deploy
- codecov
# don't build tags which are meant for code signing only
branches:

3
ci/coveragerc Normal file
View File

@ -0,0 +1,3 @@
[run]
source = qubesmgmt
omit = qubesmgmt/tests/*

View File

@ -3,3 +3,4 @@
docutils
pylint
sphinx
codecov

View File

@ -7,4 +7,4 @@ PYTHONPATH="${TESTPYTHONPATH}:${PYTHONPATH}"
export PYTHONPATH
"${PYTHON}" setup.py egg_info --egg-base "${TESTPYTHONPATH}"
"${PYTHON}" -m unittest discover -p '*.py' -v "$@"
"${PYTHON}" -m coverage run --rcfile=ci/coveragerc -m unittest discover -p '*.py' -v "$@"