Do not use codacy for coverage
This commit is contained in:
8
tox.ini
8
tox.ini
@ -128,14 +128,14 @@ whitelist_externals={[post_cmd]whitelist_externals}
|
||||
|
||||
[testenv:coverage]
|
||||
basepython=python
|
||||
passenv=CODACY_PROJECT_TOKEN
|
||||
passenv=COVERAGE_TOKEN
|
||||
deps=
|
||||
-r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/requirements-dev.txt
|
||||
codacy-coverage
|
||||
skip_install=True
|
||||
commands=
|
||||
py.test --cov=cas_server --cov-report xml --cov-report term
|
||||
python-codacy-coverage -r {toxinidir}/coverage.xml
|
||||
py.test --cov=cas_server --cov-report term --cov-report html
|
||||
bash -c 'cd {toxinidir}/htmlcov/; tar czf {toxinidir}/coverage.tar.gz ./'
|
||||
bash -c 'curl -F "secret=$COVERAGE_TOKEN" -F "tar=@{toxinidir}/coverage.tar.gz" -F "project=django-cas-server" -F "branch=$(git rev-parse --abbrev-ref HEAD)" https://badges.genua.fr/local/coverage/; rm {toxinidir}/coverage.tar.gz'
|
||||
{[post_cmd]commands}
|
||||
whitelist_externals={[post_cmd]whitelist_externals}
|
||||
|
Reference in New Issue
Block a user