travis: integrate test coverage reports via codecov
This commit is contained in:
parent
7d7f1724ff
commit
45dcc6b1dd
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@
|
|||||||
*.pyo
|
*.pyo
|
||||||
build/
|
build/
|
||||||
pkgs/
|
pkgs/
|
||||||
|
.coverage
|
||||||
|
@ -21,7 +21,8 @@ matrix:
|
|||||||
python: 2.7
|
python: 2.7
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- ~/qubes-builder/scripts/travis-deploy
|
# - ~/qubes-builder/scripts/travis-deploy
|
||||||
|
- codecov
|
||||||
|
|
||||||
# don't build tags which are meant for code signing only
|
# don't build tags which are meant for code signing only
|
||||||
branches:
|
branches:
|
||||||
|
3
ci/coveragerc
Normal file
3
ci/coveragerc
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[run]
|
||||||
|
source = qubesmgmt
|
||||||
|
omit = qubesmgmt/tests/*
|
@ -3,3 +3,4 @@
|
|||||||
docutils
|
docutils
|
||||||
pylint
|
pylint
|
||||||
sphinx
|
sphinx
|
||||||
|
codecov
|
||||||
|
@ -7,4 +7,4 @@ PYTHONPATH="${TESTPYTHONPATH}:${PYTHONPATH}"
|
|||||||
export PYTHONPATH
|
export PYTHONPATH
|
||||||
|
|
||||||
"${PYTHON}" setup.py egg_info --egg-base "${TESTPYTHONPATH}"
|
"${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 "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user