2015-06-12 21:57:11 +00:00
|
|
|
[tox]
|
|
|
|
envlist=
|
2016-06-29 22:37:00 +00:00
|
|
|
flake8,
|
2016-07-01 00:38:36 +00:00
|
|
|
check_rst,
|
2015-06-12 21:57:11 +00:00
|
|
|
py27-django17,
|
|
|
|
py27-django18,
|
2015-12-12 12:51:59 +00:00
|
|
|
py27-django19,
|
2015-06-21 16:56:16 +00:00
|
|
|
py34-django17,
|
|
|
|
py34-django18,
|
2015-12-12 12:51:59 +00:00
|
|
|
py34-django19,
|
2015-06-12 21:57:11 +00:00
|
|
|
|
|
|
|
[flake8]
|
|
|
|
max-line-length=100
|
|
|
|
exclude=migrations
|
|
|
|
|
|
|
|
[base]
|
|
|
|
deps =
|
|
|
|
-r{toxinidir}/requirements-dev.txt
|
|
|
|
|
|
|
|
[testenv]
|
2016-06-29 06:22:52 +00:00
|
|
|
commands=py.test {posargs:cas_server/tests/}
|
2015-06-12 21:57:11 +00:00
|
|
|
|
|
|
|
[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}
|
|
|
|
|
2015-12-12 12:51:59 +00:00
|
|
|
[testenv:py27-django19]
|
|
|
|
basepython=python2.7
|
|
|
|
deps =
|
|
|
|
Django>=1.9,<1.10
|
|
|
|
{[base]deps}
|
|
|
|
|
2015-06-21 16:56:16 +00:00
|
|
|
[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}
|
|
|
|
|
2015-12-12 12:51:59 +00:00
|
|
|
[testenv:py34-django19]
|
|
|
|
basepython=python3.4
|
|
|
|
deps =
|
|
|
|
Django>=1.9,<1.10
|
|
|
|
{[base]deps}
|
|
|
|
|
2015-06-12 21:57:11 +00:00
|
|
|
[testenv:flake8]
|
|
|
|
basepython=python
|
|
|
|
deps=flake8
|
|
|
|
commands=flake8 {toxinidir}/cas_server
|
|
|
|
|
2016-07-01 00:38:36 +00:00
|
|
|
[testenv:check_rst]
|
|
|
|
basepython=python
|
|
|
|
deps=
|
|
|
|
docutils
|
|
|
|
Pygments
|
2016-07-01 01:20:58 +00:00
|
|
|
commands=rst2html.py --strict {toxinidir}/README.rst /dev/null
|
2016-07-01 00:38:36 +00:00
|
|
|
|
2016-06-29 21:48:29 +00:00
|
|
|
[testenv:coverage]
|
|
|
|
basepython=python
|
2016-06-30 12:52:55 +00:00
|
|
|
passenv=CODACY_PROJECT_TOKEN
|
2016-06-29 21:48:29 +00:00
|
|
|
deps=
|
|
|
|
-r{toxinidir}/requirements-dev.txt
|
|
|
|
codacy-coverage
|
|
|
|
commands=
|
|
|
|
py.test --cov=cas_server --cov-report xml
|
|
|
|
python-codacy-coverage -r {toxinidir}/coverage.xml
|
|
|
|
|