142 lines
2.8 KiB
INI
142 lines
2.8 KiB
INI
[tox]
|
|
envlist=
|
|
flake8,
|
|
check_rst,
|
|
py27-django17,
|
|
py27-django18,
|
|
py27-django19,
|
|
py27-django110,
|
|
py34-django17,
|
|
py34-django18,
|
|
py34-django19,
|
|
py34-django110,
|
|
py35-django18,
|
|
py35-django19,
|
|
py35-django110,
|
|
|
|
[flake8]
|
|
max-line-length=100
|
|
exclude=migrations
|
|
|
|
[base]
|
|
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 -rw {posargs:cas_server/tests/}
|
|
{[post_cmd]commands}
|
|
whitelist_externals={[post_cmd]whitelist_externals}
|
|
|
|
[testenv:py27-django17]
|
|
basepython=python2.7
|
|
deps =
|
|
Django>=1.7,<1.8
|
|
{[base]deps}
|
|
|
|
[testenv:py27-django18]
|
|
basepython=python2.7
|
|
deps =
|
|
Django>=1.8,<1.9
|
|
{[base]deps}
|
|
|
|
[testenv:py27-django19]
|
|
basepython=python2.7
|
|
deps =
|
|
Django>=1.9,<1.10
|
|
{[base]deps}
|
|
|
|
[testenv:py27-django110]
|
|
basepython=python2.7
|
|
deps =
|
|
Django>=1.10,<1.11
|
|
{[base]deps}
|
|
|
|
[testenv:py34-django17]
|
|
basepython=python3.4
|
|
deps =
|
|
Django>=1.7,<1.8
|
|
{[base]deps}
|
|
|
|
[testenv:py34-django18]
|
|
basepython=python3.4
|
|
deps =
|
|
Django>=1.8,<1.9
|
|
{[base]deps}
|
|
|
|
[testenv:py34-django19]
|
|
basepython=python3.4
|
|
deps =
|
|
Django>=1.9,<1.10
|
|
{[base]deps}
|
|
|
|
[testenv:py34-django110]
|
|
basepython=python3.4
|
|
deps =
|
|
Django>=1.10,<1.11
|
|
{[base]deps}
|
|
|
|
[testenv:py35-django18]
|
|
basepython=python3.5
|
|
deps =
|
|
Django>=1.8,<1.9
|
|
{[base]deps}
|
|
|
|
[testenv:py35-django19]
|
|
basepython=python3.5
|
|
deps =
|
|
Django>=1.9,<1.10
|
|
{[base]deps}
|
|
|
|
[testenv:py35-django110]
|
|
basepython=python3.5
|
|
deps =
|
|
Django>=1.10,<1.11
|
|
{[base]deps}
|
|
|
|
|
|
[testenv:flake8]
|
|
basepython=python
|
|
deps=flake8
|
|
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
|
|
skip_install=True
|
|
commands=
|
|
rst2html.py --strict {toxinidir}/README.rst /dev/null
|
|
rst2html.py --halt=warning {toxinidir}/CHANGELOG.rst /dev/null
|
|
{[post_cmd]commands}
|
|
whitelist_externals={[post_cmd]whitelist_externals}
|
|
|
|
[testenv:coverage]
|
|
basepython=python
|
|
passenv=COVERAGE_TOKEN
|
|
deps=
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/requirements-dev.txt
|
|
skip_install=True
|
|
commands=
|
|
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}
|