Add coverage computation to travis

This commit is contained in:
Valentin Samir
2016-06-29 23:48:29 +02:00
parent 2fba4183a3
commit 22a7568498
4 changed files with 19 additions and 11 deletions

11
tox.ini
View File

@ -7,6 +7,7 @@ envlist=
py34-django18,
py34-django19,
flake8,
coverage
[flake8]
max-line-length=100
@ -60,3 +61,13 @@ basepython=python
deps=flake8
commands=flake8 {toxinidir}/cas_server
[testenv:coverage]
basepython=python
passenv=CODACY_PROJECT_TOKEN
deps=
-r{toxinidir}/requirements-dev.txt
codacy-coverage
commands=
py.test --cov=cas_server --cov-report xml
python-codacy-coverage -r {toxinidir}/coverage.xml