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,
|
2017-11-17 15:54:51 +00:00
|
|
|
py27-django111,
|
2021-06-19 15:21:48 +00:00
|
|
|
py3-django111,
|
|
|
|
py3-django22,
|
|
|
|
py3-django31,
|
|
|
|
py3-django32,
|
|
|
|
|
|
|
|
##################
|
|
|
|
# generic config #
|
|
|
|
##################
|
2015-06-12 21:57:11 +00:00
|
|
|
|
|
|
|
[flake8]
|
|
|
|
max-line-length=100
|
|
|
|
exclude=migrations
|
|
|
|
|
|
|
|
[base]
|
|
|
|
deps =
|
|
|
|
-r{toxinidir}/requirements-dev.txt
|
|
|
|
|
2016-07-03 17:46:52 +00: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 21:57:11 +00:00
|
|
|
[testenv]
|
2016-07-03 17:46:52 +00:00
|
|
|
commands=
|
2016-07-29 11:56:23 +00:00
|
|
|
py.test -rw {posargs:cas_server/tests/}
|
2016-07-03 17:46:52 +00:00
|
|
|
{[post_cmd]commands}
|
|
|
|
whitelist_externals={[post_cmd]whitelist_externals}
|
2015-06-12 21:57:11 +00:00
|
|
|
|
2021-06-19 15:21:48 +00:00
|
|
|
###################
|
|
|
|
# genercic checks #
|
|
|
|
###################
|
|
|
|
|
|
|
|
[testenv:flake8]
|
|
|
|
basepython=python3
|
|
|
|
deps=flake8
|
|
|
|
skip_install=True
|
|
|
|
commands=
|
|
|
|
flake8 {toxinidir}/cas_server
|
|
|
|
{[post_cmd]commands}
|
|
|
|
whitelist_externals={[post_cmd]whitelist_externals}
|
|
|
|
|
|
|
|
[testenv:check_rst]
|
|
|
|
basepython=python3
|
|
|
|
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=python3
|
|
|
|
passenv=
|
|
|
|
COVERAGE_TOKEN
|
|
|
|
CI_BUILD_REF_NAME
|
|
|
|
TRAVIS_BRANCH
|
|
|
|
TRAVIS_PULL_REQUEST
|
|
|
|
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
|
|
|
|
{toxinidir}/.update_coverage "{toxinidir}" "django-cas-server"
|
|
|
|
{[post_cmd]commands}
|
|
|
|
whitelist_externals={[post_cmd]whitelist_externals}
|
|
|
|
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Python 2 support #
|
|
|
|
####################
|
|
|
|
|
2017-11-17 15:54:51 +00:00
|
|
|
[testenv:py27-django111]
|
|
|
|
basepython=python2.7
|
|
|
|
deps =
|
|
|
|
Django>=1.11,<1.12
|
|
|
|
{[base]deps}
|
|
|
|
|
2021-06-19 15:21:48 +00:00
|
|
|
##################################
|
|
|
|
# Generic Python 3 for local use #
|
|
|
|
##################################
|
2016-07-23 16:50:47 +00:00
|
|
|
|
2021-06-19 15:21:48 +00:00
|
|
|
[testenv:py3-django111]
|
|
|
|
basepython=python3
|
2016-07-23 16:50:47 +00:00
|
|
|
deps =
|
2017-11-17 15:54:51 +00:00
|
|
|
Django>=1.11,<1.12
|
2016-07-23 16:50:47 +00:00
|
|
|
{[base]deps}
|
|
|
|
|
2021-06-19 15:21:48 +00:00
|
|
|
[testenv:py3-django22]
|
|
|
|
basepython=python3
|
2020-04-25 00:59:37 +00:00
|
|
|
deps =
|
2021-06-19 15:21:48 +00:00
|
|
|
Django>=2.2,<2.3
|
2020-04-25 00:59:37 +00:00
|
|
|
{[base]deps}
|
|
|
|
|
2021-06-19 15:21:48 +00:00
|
|
|
[testenv:py3-django31]
|
|
|
|
basepython=python3
|
2020-04-25 00:59:37 +00:00
|
|
|
deps =
|
2021-06-19 15:21:48 +00:00
|
|
|
Django>=3.1,<3.2
|
2020-04-25 00:59:37 +00:00
|
|
|
{[base]deps}
|
|
|
|
|
2021-06-19 15:21:48 +00:00
|
|
|
[testenv:py3-django32]
|
|
|
|
basepython=python3
|
2020-04-25 00:59:37 +00:00
|
|
|
deps =
|
2021-06-19 15:21:48 +00:00
|
|
|
Django>=3.2,<3.3
|
2020-04-25 00:59:37 +00:00
|
|
|
{[base]deps}
|
|
|
|
|
2021-06-19 15:21:48 +00:00
|
|
|
#########################
|
|
|
|
# Debian strech support #
|
|
|
|
#########################
|
|
|
|
|
|
|
|
[testenv:py35-django111]
|
|
|
|
basepython=python3.5
|
2020-04-25 00:59:37 +00:00
|
|
|
deps =
|
2021-06-19 15:21:48 +00:00
|
|
|
Django>=1.11,<1.12
|
2020-04-25 00:59:37 +00:00
|
|
|
{[base]deps}
|
|
|
|
|
2021-06-19 15:21:48 +00:00
|
|
|
####################################
|
|
|
|
# Ubuntu bionic and EPEL 7 support #
|
|
|
|
####################################
|
|
|
|
|
|
|
|
[testenv:py36-django111]
|
|
|
|
basepython=python3.6
|
2020-12-22 22:07:32 +00:00
|
|
|
deps =
|
2021-06-19 15:21:48 +00:00
|
|
|
Django>=1.11,<1.12
|
2020-12-22 22:07:32 +00:00
|
|
|
{[base]deps}
|
|
|
|
|
2021-06-19 15:21:48 +00:00
|
|
|
##################
|
|
|
|
# RHEL 8 support #
|
|
|
|
##################
|
|
|
|
|
|
|
|
[testenv:py36-django22]
|
2020-04-25 00:59:37 +00:00
|
|
|
basepython=python3.6
|
|
|
|
deps =
|
2021-06-19 15:21:48 +00:00
|
|
|
Django>=2.2,<3.0
|
2020-04-25 00:59:37 +00:00
|
|
|
{[base]deps}
|
|
|
|
|
2021-06-19 15:21:48 +00:00
|
|
|
#########################
|
|
|
|
# Debian buster support #
|
|
|
|
#########################
|
|
|
|
|
|
|
|
[testenv:py37-django111]
|
2020-04-25 00:59:37 +00:00
|
|
|
basepython=python3.7
|
|
|
|
deps =
|
2021-06-19 15:21:48 +00:00
|
|
|
Django>=1.11,<1.12
|
2020-04-25 00:59:37 +00:00
|
|
|
{[base]deps}
|
|
|
|
|
2021-06-19 15:21:48 +00:00
|
|
|
##########################################
|
|
|
|
# Ubuntu focal and Ubuntu groovy support #
|
|
|
|
##########################################
|
|
|
|
|
|
|
|
[testenv:py38-django22]
|
2020-04-25 00:59:37 +00:00
|
|
|
basepython=python3.8
|
|
|
|
deps =
|
2021-06-19 15:21:48 +00:00
|
|
|
Django>=2.2,<3.0
|
2020-04-25 00:59:37 +00:00
|
|
|
{[base]deps}
|
2016-08-25 11:02:09 +00:00
|
|
|
|
2021-06-19 15:21:48 +00:00
|
|
|
##############################################
|
|
|
|
# Debian bullseye and Ubuntu hirsute support #
|
|
|
|
##############################################
|
|
|
|
|
|
|
|
[testenv:py39-django22]
|
2020-12-22 22:07:32 +00:00
|
|
|
basepython=python3.9
|
|
|
|
deps =
|
2021-06-19 15:21:48 +00:00
|
|
|
Django>=2.2,<3.0
|
2020-12-22 22:07:32 +00:00
|
|
|
{[base]deps}
|
|
|
|
|
2021-06-19 15:21:48 +00:00
|
|
|
#######################################
|
|
|
|
# Django additional supported version #
|
|
|
|
#######################################
|
2020-12-22 22:07:32 +00:00
|
|
|
|
2021-06-19 15:21:48 +00:00
|
|
|
[testenv:py39-django31]
|
|
|
|
basepython=python3.9
|
2020-12-22 22:07:32 +00:00
|
|
|
deps =
|
|
|
|
Django>=3.1,<3.2
|
|
|
|
{[base]deps}
|
|
|
|
|
|
|
|
|
2021-06-19 15:21:48 +00:00
|
|
|
[testenv:py39-django32]
|
2020-12-22 22:07:32 +00:00
|
|
|
basepython=python3.9
|
|
|
|
deps =
|
2021-06-19 15:21:48 +00:00
|
|
|
Django>=3.2,<3.3
|
2020-12-22 22:07:32 +00:00
|
|
|
{[base]deps}
|