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,
|
2022-10-17 18:32:21 +02:00
|
|
|
py3-django111,
|
2021-06-19 17:21:48 +02:00
|
|
|
py3-django22,
|
|
|
|
py3-django31,
|
|
|
|
py3-django32,
|
2022-10-16 20:52:28 +02:00
|
|
|
py3-django40,
|
|
|
|
py3-django41,
|
2023-09-13 11:47:45 +02:00
|
|
|
py3-django42,
|
2021-06-19 17:21:48 +02:00
|
|
|
|
|
|
|
##################
|
|
|
|
# generic config #
|
|
|
|
##################
|
2015-06-12 23:57:11 +02:00
|
|
|
|
|
|
|
[flake8]
|
|
|
|
max-line-length=100
|
|
|
|
exclude=migrations
|
2023-09-13 11:47:45 +02:00
|
|
|
allowlist_externals={[post_cmd]allowlist_external}
|
2015-06-12 23:57:11 +02:00
|
|
|
|
|
|
|
[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/"
|
2023-09-13 11:47:45 +02:00
|
|
|
allowlist_externals=
|
2016-07-03 19:46:52 +02:00
|
|
|
find
|
|
|
|
bash
|
|
|
|
mkdir
|
|
|
|
|
2015-06-12 23:57:11 +02:00
|
|
|
[testenv]
|
2023-09-13 11:47:45 +02:00
|
|
|
setenv=
|
|
|
|
PYTHONWARNINGS=always
|
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}
|
2023-09-13 11:47:45 +02:00
|
|
|
allowlist_externals={[post_cmd]allowlist_externals}
|
2015-06-12 23:57:11 +02:00
|
|
|
|
2021-06-19 17:21:48 +02:00
|
|
|
###################
|
|
|
|
# genercic checks #
|
|
|
|
###################
|
|
|
|
|
|
|
|
[testenv:flake8]
|
|
|
|
basepython=python3
|
|
|
|
deps=flake8
|
|
|
|
skip_install=True
|
|
|
|
commands=
|
|
|
|
flake8 {toxinidir}/cas_server
|
|
|
|
{[post_cmd]commands}
|
2023-09-13 11:47:45 +02:00
|
|
|
allowlist_externals={[post_cmd]allowlist_externals}
|
2021-06-19 17:21:48 +02:00
|
|
|
|
|
|
|
[testenv:check_rst]
|
|
|
|
basepython=python3
|
|
|
|
deps=
|
|
|
|
docutils
|
|
|
|
Pygments
|
|
|
|
skip_install=True
|
|
|
|
commands=
|
2024-04-13 17:27:52 +02:00
|
|
|
rst2html --strict {toxinidir}/README.rst /dev/null
|
|
|
|
rst2html --halt=warning {toxinidir}/CHANGELOG.rst /dev/null
|
2021-06-19 17:21:48 +02:00
|
|
|
{[post_cmd]commands}
|
2023-09-13 11:47:45 +02:00
|
|
|
allowlist_externals={[post_cmd]allowlist_externals}
|
2021-06-19 17:21:48 +02:00
|
|
|
|
|
|
|
[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
|
2023-09-13 11:47:45 +02:00
|
|
|
git config --global --add safe.directory "{toxinidir}"
|
2021-06-19 17:21:48 +02:00
|
|
|
{toxinidir}/.update_coverage "{toxinidir}" "django-cas-server"
|
|
|
|
{[post_cmd]commands}
|
2023-09-13 11:47:45 +02:00
|
|
|
allowlist_externals=
|
|
|
|
{toxinidir}/.update_coverage
|
|
|
|
git
|
|
|
|
{[post_cmd]allowlist_externals}
|
2021-06-19 17:21:48 +02:00
|
|
|
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Python 2 support #
|
|
|
|
####################
|
|
|
|
|
2017-11-17 16:54:51 +01:00
|
|
|
[testenv:py27-django111]
|
|
|
|
basepython=python2.7
|
|
|
|
deps =
|
|
|
|
Django>=1.11,<1.12
|
|
|
|
{[base]deps}
|
|
|
|
|
2021-06-19 17:21:48 +02:00
|
|
|
##################################
|
|
|
|
# Generic Python 3 for local use #
|
|
|
|
##################################
|
2016-07-23 18:50:47 +02:00
|
|
|
|
2021-06-19 17:21:48 +02:00
|
|
|
[testenv:py3-django111]
|
|
|
|
basepython=python3
|
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}
|
|
|
|
|
2021-06-19 17:21:48 +02:00
|
|
|
[testenv:py3-django22]
|
|
|
|
basepython=python3
|
2020-04-25 02:59:37 +02:00
|
|
|
deps =
|
2021-06-19 17:21:48 +02:00
|
|
|
Django>=2.2,<2.3
|
2020-04-25 02:59:37 +02:00
|
|
|
{[base]deps}
|
|
|
|
|
2021-06-19 17:21:48 +02:00
|
|
|
[testenv:py3-django31]
|
|
|
|
basepython=python3
|
2020-04-25 02:59:37 +02:00
|
|
|
deps =
|
2021-06-19 17:21:48 +02:00
|
|
|
Django>=3.1,<3.2
|
2020-04-25 02:59:37 +02:00
|
|
|
{[base]deps}
|
|
|
|
|
2021-06-19 17:21:48 +02:00
|
|
|
[testenv:py3-django32]
|
|
|
|
basepython=python3
|
2020-04-25 02:59:37 +02:00
|
|
|
deps =
|
2021-06-19 17:21:48 +02:00
|
|
|
Django>=3.2,<3.3
|
2020-04-25 02:59:37 +02:00
|
|
|
{[base]deps}
|
|
|
|
|
2022-10-16 20:52:28 +02:00
|
|
|
[testenv:py3-django40]
|
|
|
|
basepython=python3
|
|
|
|
deps =
|
|
|
|
Django>=4.0,<4.1
|
|
|
|
{[base]deps}
|
|
|
|
|
|
|
|
[testenv:py3-django41]
|
|
|
|
basepython=python3
|
|
|
|
deps =
|
|
|
|
Django>=4.1,<4.2
|
|
|
|
{[base]deps}
|
|
|
|
|
2023-09-13 11:47:45 +02:00
|
|
|
[testenv:py3-django42]
|
|
|
|
basepython=python3
|
|
|
|
deps =
|
|
|
|
Django>=4.2,<4.3
|
|
|
|
{[base]deps}
|
|
|
|
|
2021-06-19 17:21:48 +02:00
|
|
|
#########################
|
|
|
|
# Debian strech support #
|
|
|
|
#########################
|
|
|
|
|
|
|
|
[testenv:py35-django111]
|
|
|
|
basepython=python3.5
|
2020-04-25 02:59:37 +02:00
|
|
|
deps =
|
2021-06-19 17:21:48 +02:00
|
|
|
Django>=1.11,<1.12
|
2020-04-25 02:59:37 +02:00
|
|
|
{[base]deps}
|
|
|
|
|
2021-06-19 17:21:48 +02:00
|
|
|
####################################
|
|
|
|
# Ubuntu bionic and EPEL 7 support #
|
|
|
|
####################################
|
|
|
|
|
|
|
|
[testenv:py36-django111]
|
|
|
|
basepython=python3.6
|
2020-12-22 23:07:32 +01:00
|
|
|
deps =
|
2021-06-19 17:21:48 +02:00
|
|
|
Django>=1.11,<1.12
|
2020-12-22 23:07:32 +01:00
|
|
|
{[base]deps}
|
|
|
|
|
2021-06-19 17:21:48 +02:00
|
|
|
##################
|
|
|
|
# RHEL 8 support #
|
|
|
|
##################
|
|
|
|
|
|
|
|
[testenv:py36-django22]
|
2020-04-25 02:59:37 +02:00
|
|
|
basepython=python3.6
|
|
|
|
deps =
|
2021-06-19 17:21:48 +02:00
|
|
|
Django>=2.2,<3.0
|
2020-04-25 02:59:37 +02:00
|
|
|
{[base]deps}
|
|
|
|
|
2021-06-19 17:21:48 +02:00
|
|
|
#########################
|
|
|
|
# Debian buster support #
|
|
|
|
#########################
|
|
|
|
|
|
|
|
[testenv:py37-django111]
|
2020-04-25 02:59:37 +02:00
|
|
|
basepython=python3.7
|
|
|
|
deps =
|
2021-06-19 17:21:48 +02:00
|
|
|
Django>=1.11,<1.12
|
2020-04-25 02:59:37 +02:00
|
|
|
{[base]deps}
|
|
|
|
|
2023-09-13 11:47:45 +02:00
|
|
|
########################
|
|
|
|
# Ubuntu focal support #
|
|
|
|
########################
|
2021-06-19 17:21:48 +02:00
|
|
|
|
|
|
|
[testenv:py38-django22]
|
2020-04-25 02:59:37 +02:00
|
|
|
basepython=python3.8
|
|
|
|
deps =
|
2021-06-19 17:21:48 +02:00
|
|
|
Django>=2.2,<3.0
|
2020-04-25 02:59:37 +02:00
|
|
|
{[base]deps}
|
2016-08-25 13:02:09 +02:00
|
|
|
|
2023-09-13 11:47:45 +02:00
|
|
|
###################
|
|
|
|
# Debian bullseye #
|
|
|
|
###################
|
2021-06-19 17:21:48 +02:00
|
|
|
|
|
|
|
[testenv:py39-django22]
|
2020-12-22 23:07:32 +01:00
|
|
|
basepython=python3.9
|
|
|
|
deps =
|
2021-06-19 17:21:48 +02:00
|
|
|
Django>=2.2,<3.0
|
2020-12-22 23:07:32 +01:00
|
|
|
{[base]deps}
|
|
|
|
|
2023-09-13 11:47:45 +02:00
|
|
|
################
|
|
|
|
# Ubuntu jammy #
|
|
|
|
################
|
2022-10-16 21:07:48 +02:00
|
|
|
|
|
|
|
[testenv:py310-django32]
|
|
|
|
basepython=python3.10
|
|
|
|
deps =
|
|
|
|
Django>=3.2,<3.3
|
|
|
|
{[base]deps}
|
|
|
|
|
|
|
|
|
2023-09-13 11:47:45 +02:00
|
|
|
###########################
|
|
|
|
# Debian bookworm support #
|
|
|
|
###########################
|
2020-12-22 23:07:32 +01:00
|
|
|
|
2023-09-13 11:47:45 +02:00
|
|
|
[testenv:py311-django32]
|
|
|
|
basepython=python3.11
|
2020-12-22 23:07:32 +01:00
|
|
|
deps =
|
2023-09-13 11:47:45 +02:00
|
|
|
Django>=3.2,<3.3
|
2020-12-22 23:07:32 +01:00
|
|
|
{[base]deps}
|
|
|
|
|
|
|
|
|
2023-09-13 11:47:45 +02:00
|
|
|
#######################################
|
|
|
|
# Django additional supported version #
|
|
|
|
#######################################
|
|
|
|
|
|
|
|
[testenv:py39-django42]
|
2020-12-22 23:07:32 +01:00
|
|
|
basepython=python3.9
|
|
|
|
deps =
|
2023-09-13 11:47:45 +02:00
|
|
|
Django>=4.2,<4.3
|
2020-12-22 23:07:32 +01:00
|
|
|
{[base]deps}
|
2022-10-16 21:07:48 +02:00
|
|
|
|
2023-09-13 11:47:45 +02:00
|
|
|
[testenv:py310-django42]
|
2022-10-16 21:07:48 +02:00
|
|
|
basepython=python3.10
|
|
|
|
deps =
|
2023-09-13 11:47:45 +02:00
|
|
|
Django>=4.2,<4.3
|
2022-10-16 21:07:48 +02:00
|
|
|
{[base]deps}
|
|
|
|
|
2023-09-13 11:47:45 +02:00
|
|
|
[testenv:py311-django42]
|
|
|
|
basepython=python3.11
|
2022-10-16 21:07:48 +02:00
|
|
|
deps =
|
2023-09-13 11:47:45 +02:00
|
|
|
Django>=4.2,<4.3
|
2022-10-16 21:07:48 +02:00
|
|
|
{[base]deps}
|