2015-06-12 23:57:11 +02:00
|
|
|
[tox]
|
|
|
|
envlist=
|
2016-06-30 00:37:00 +02:00
|
|
|
flake8,
|
2016-07-01 02:38:36 +02:00
|
|
|
check_rst,
|
2017-11-17 16:54:51 +01:00
|
|
|
py27-django111,
|
2018-04-29 20:10:01 +02:00
|
|
|
py35-django111,
|
2017-11-17 16:54:51 +01:00
|
|
|
py36-django111,
|
2020-07-05 15:07:18 +02:00
|
|
|
py37-django111,
|
2020-04-25 02:59:37 +02:00
|
|
|
py36-django22,
|
|
|
|
py37-django22,
|
|
|
|
py38-django22,
|
|
|
|
py36-django30,
|
|
|
|
py37-django30,
|
|
|
|
py38-django30,
|
2015-06-12 23:57:11 +02:00
|
|
|
|
|
|
|
[flake8]
|
|
|
|
max-line-length=100
|
|
|
|
exclude=migrations
|
|
|
|
|
|
|
|
[base]
|
|
|
|
deps =
|
|
|
|
-r{toxinidir}/requirements-dev.txt
|
|
|
|
|
2016-07-03 19:46:52 +02:00
|
|
|
[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
|
|
|
|
|
2015-06-12 23:57:11 +02:00
|
|
|
[testenv]
|
2016-07-03 19:46:52 +02:00
|
|
|
commands=
|
2016-07-29 13:56:23 +02:00
|
|
|
py.test -rw {posargs:cas_server/tests/}
|
2016-07-03 19:46:52 +02:00
|
|
|
{[post_cmd]commands}
|
|
|
|
whitelist_externals={[post_cmd]whitelist_externals}
|
2015-06-12 23:57:11 +02: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 13:51:59 +01:00
|
|
|
[testenv:py27-django19]
|
|
|
|
basepython=python2.7
|
|
|
|
deps =
|
|
|
|
Django>=1.9,<1.10
|
|
|
|
{[base]deps}
|
|
|
|
|
2016-08-25 13:02:09 +02:00
|
|
|
[testenv:py27-django110]
|
|
|
|
basepython=python2.7
|
|
|
|
deps =
|
|
|
|
Django>=1.10,<1.11
|
|
|
|
{[base]deps}
|
|
|
|
|
2017-11-17 16:54:51 +01:00
|
|
|
[testenv:py27-django111]
|
|
|
|
basepython=python2.7
|
|
|
|
deps =
|
|
|
|
Django>=1.11,<1.12
|
|
|
|
{[base]deps}
|
|
|
|
|
2015-06-21 18:56:16 +02: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}
|
|
|
|
|
2017-11-17 16:54:51 +01:00
|
|
|
[testenv:py35-django110]
|
|
|
|
basepython=python3.5
|
2016-08-25 13:02:09 +02:00
|
|
|
deps =
|
|
|
|
Django>=1.10,<1.11
|
|
|
|
{[base]deps}
|
|
|
|
|
2017-11-17 16:54:51 +01:00
|
|
|
[testenv:py35-django111]
|
2016-07-23 18:50:47 +02:00
|
|
|
basepython=python3.5
|
|
|
|
deps =
|
2017-11-17 16:54:51 +01:00
|
|
|
Django>=1.11,<1.12
|
2016-07-23 18:50:47 +02:00
|
|
|
{[base]deps}
|
|
|
|
|
2017-11-17 16:54:51 +01:00
|
|
|
[testenv:py36-django111]
|
|
|
|
basepython=python3.6
|
2016-07-23 18:50:47 +02:00
|
|
|
deps =
|
2017-11-17 16:54:51 +01:00
|
|
|
Django>=1.11,<1.12
|
2016-07-23 18:50:47 +02:00
|
|
|
{[base]deps}
|
|
|
|
|
2018-04-29 20:10:01 +02:00
|
|
|
[testenv:py35-django20]
|
|
|
|
basepython=python3.5
|
|
|
|
deps =
|
|
|
|
Django>=2.0,<2.1
|
|
|
|
{[base]deps}
|
|
|
|
|
2018-01-27 10:44:34 +01:00
|
|
|
[testenv:py36-django20]
|
|
|
|
basepython=python3.6
|
|
|
|
deps =
|
|
|
|
Django>=2.0,<2.1
|
|
|
|
{[base]deps}
|
|
|
|
|
2019-03-02 11:23:30 +01:00
|
|
|
[testenv:py35-django21]
|
|
|
|
basepython=python3.5
|
|
|
|
deps =
|
|
|
|
Django>=2.1,<2.2
|
|
|
|
{[base]deps}
|
|
|
|
|
|
|
|
[testenv:py36-django21]
|
|
|
|
basepython=python3.6
|
|
|
|
deps =
|
|
|
|
Django>=2.1,<2.2
|
|
|
|
{[base]deps}
|
|
|
|
|
2020-04-25 02:59:37 +02:00
|
|
|
[testenv:py37-django21]
|
|
|
|
basepython=python3.7
|
|
|
|
deps =
|
|
|
|
Django>=2.1,<2.2
|
|
|
|
{[base]deps}
|
|
|
|
|
|
|
|
[testenv:py36-django22]
|
|
|
|
basepython=python3.6
|
|
|
|
deps =
|
|
|
|
Django>=2.2,<3.0
|
|
|
|
{[base]deps}
|
|
|
|
|
|
|
|
[testenv:py37-django22]
|
|
|
|
basepython=python3.7
|
|
|
|
deps =
|
|
|
|
Django>=2.2,<3.0
|
|
|
|
{[base]deps}
|
|
|
|
|
|
|
|
[testenv:py38-django22]
|
|
|
|
basepython=python3.8
|
|
|
|
deps =
|
|
|
|
Django>=2.2,<3.0
|
|
|
|
{[base]deps}
|
|
|
|
|
|
|
|
[testenv:py36-django30]
|
|
|
|
basepython=python3.6
|
|
|
|
deps =
|
|
|
|
Django>=3.0,<3.1
|
|
|
|
{[base]deps}
|
|
|
|
|
|
|
|
[testenv:py37-django30]
|
|
|
|
basepython=python3.7
|
|
|
|
deps =
|
|
|
|
Django>=3.0,<3.1
|
|
|
|
{[base]deps}
|
|
|
|
|
|
|
|
[testenv:py38-django30]
|
|
|
|
basepython=python3.8
|
|
|
|
deps =
|
|
|
|
Django>=3.0,<3.1
|
|
|
|
{[base]deps}
|
2016-08-25 13:02:09 +02:00
|
|
|
|
2016-07-23 18:50:47 +02:00
|
|
|
|
2015-06-12 23:57:11 +02:00
|
|
|
[testenv:flake8]
|
2020-01-01 11:52:31 +01:00
|
|
|
basepython=python3
|
2015-06-12 23:57:11 +02:00
|
|
|
deps=flake8
|
2016-07-03 19:46:52 +02:00
|
|
|
skip_install=True
|
|
|
|
commands=
|
|
|
|
flake8 {toxinidir}/cas_server
|
|
|
|
{[post_cmd]commands}
|
|
|
|
whitelist_externals={[post_cmd]whitelist_externals}
|
2015-06-12 23:57:11 +02:00
|
|
|
|
2016-07-01 02:38:36 +02:00
|
|
|
[testenv:check_rst]
|
2020-01-01 11:52:31 +01:00
|
|
|
basepython=python3
|
2016-07-01 02:38:36 +02:00
|
|
|
deps=
|
|
|
|
docutils
|
|
|
|
Pygments
|
2016-07-03 19:46:52 +02:00
|
|
|
skip_install=True
|
|
|
|
commands=
|
|
|
|
rst2html.py --strict {toxinidir}/README.rst /dev/null
|
2016-08-23 12:57:42 +02:00
|
|
|
rst2html.py --halt=warning {toxinidir}/CHANGELOG.rst /dev/null
|
2016-07-03 19:46:52 +02:00
|
|
|
{[post_cmd]commands}
|
|
|
|
whitelist_externals={[post_cmd]whitelist_externals}
|
2016-07-01 02:38:36 +02:00
|
|
|
|
2016-06-29 23:48:29 +02:00
|
|
|
[testenv:coverage]
|
2020-01-01 11:52:31 +01:00
|
|
|
basepython=python3
|
2016-09-09 14:52:52 +02:00
|
|
|
passenv=
|
|
|
|
COVERAGE_TOKEN
|
|
|
|
CI_BUILD_REF_NAME
|
|
|
|
TRAVIS_BRANCH
|
|
|
|
TRAVIS_PULL_REQUEST
|
2016-06-29 23:48:29 +02:00
|
|
|
deps=
|
2016-07-05 13:09:16 +02:00
|
|
|
-r{toxinidir}/requirements.txt
|
2016-06-29 23:48:29 +02:00
|
|
|
-r{toxinidir}/requirements-dev.txt
|
2016-07-03 19:46:52 +02:00
|
|
|
skip_install=True
|
2016-06-29 23:48:29 +02:00
|
|
|
commands=
|
2016-09-09 14:25:43 +02:00
|
|
|
py.test --cov=cas_server --cov-report term --cov-report html
|
2016-09-09 14:52:52 +02:00
|
|
|
{toxinidir}/.update_coverage "{toxinidir}" "django-cas-server"
|
2016-07-03 19:46:52 +02:00
|
|
|
{[post_cmd]commands}
|
|
|
|
whitelist_externals={[post_cmd]whitelist_externals}
|