Optimise tox and travis
This commit is contained in:
31
tox.ini
31
tox.ini
@@ -17,8 +17,21 @@ exclude=migrations
|
||||
deps =
|
||||
-r{toxinidir}/requirements-dev.txt
|
||||
|
||||
[post_cmd]
|
||||
commands=
|
||||
find {toxworkdir} -name '*.pyc' -delete
|
||||
mkdir -p {toxinidir}/tox_logs/
|
||||
bash -c "mv {toxworkdir}/{envname}/log/* {toxinidir}/tox_logs/"
|
||||
whitelist_externals=
|
||||
find
|
||||
bash
|
||||
mkdir
|
||||
|
||||
[testenv]
|
||||
commands=py.test {posargs:cas_server/tests/}
|
||||
commands=
|
||||
py.test {posargs:cas_server/tests/}
|
||||
{[post_cmd]commands}
|
||||
whitelist_externals={[post_cmd]whitelist_externals}
|
||||
|
||||
[testenv:py27-django17]
|
||||
basepython=python2.7
|
||||
@@ -59,14 +72,22 @@ deps =
|
||||
[testenv:flake8]
|
||||
basepython=python
|
||||
deps=flake8
|
||||
commands=flake8 {toxinidir}/cas_server
|
||||
skip_install=True
|
||||
commands=
|
||||
flake8 {toxinidir}/cas_server
|
||||
{[post_cmd]commands}
|
||||
whitelist_externals={[post_cmd]whitelist_externals}
|
||||
|
||||
[testenv:check_rst]
|
||||
basepython=python
|
||||
deps=
|
||||
docutils
|
||||
Pygments
|
||||
commands=rst2html.py --strict {toxinidir}/README.rst /dev/null
|
||||
skip_install=True
|
||||
commands=
|
||||
rst2html.py --strict {toxinidir}/README.rst /dev/null
|
||||
{[post_cmd]commands}
|
||||
whitelist_externals={[post_cmd]whitelist_externals}
|
||||
|
||||
[testenv:coverage]
|
||||
basepython=python
|
||||
@@ -74,7 +95,9 @@ passenv=CODACY_PROJECT_TOKEN
|
||||
deps=
|
||||
-r{toxinidir}/requirements-dev.txt
|
||||
codacy-coverage
|
||||
skip_install=True
|
||||
commands=
|
||||
py.test --cov=cas_server --cov-report xml
|
||||
python-codacy-coverage -r {toxinidir}/coverage.xml
|
||||
|
||||
{[post_cmd]commands}
|
||||
whitelist_externals={[post_cmd]whitelist_externals}
|
||||
|
Reference in New Issue
Block a user