Add coverage computation to travis
This commit is contained in:
11
tox.ini
11
tox.ini
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user