authentic2-auth-kerberos/tox.ini

82 lines
2.0 KiB
INI
Raw Permalink Normal View History

2016-02-24 01:01:33 +01:00
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
2019-06-08 09:20:13 +02:00
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/authentic2-auth-kerberos/
2020-05-15 11:13:20 +02:00
envlist =
2020-10-11 17:24:37 +02:00
py3-dj111-drf39
2020-05-15 11:13:20 +02:00
py3-dj22-drf39
[tox:jenkins]
envlist =
pylint
2020-10-11 17:24:37 +02:00
py3-dj111-drf39
2020-05-15 11:13:20 +02:00
py3-dj22-drf39
2016-02-24 01:01:33 +01:00
[testenv]
2016-02-24 01:01:33 +01:00
setenv =
2020-05-15 11:13:20 +02:00
AUTHENTIC2_SETTINGS_FILE=tests/settings.py
DJANGO_SETTINGS_MODULE=authentic2.settings
JUNIT={tty::-o junit_suite_name={envname} --junit-xml=junit-{envname}.xml}
COVERAGE={tty::--junitxml=test_{envname}_results.xml --cov-report xml --cov-report html --cov=src/ --cov-config .coveragerc}
passenv=
BRANCH_NAME
# support for pg_virtualenv
PGPORT
PGHOST
PGUSER
PGPASSWORD
usedevelop = true
deps =
2020-12-26 15:21:15 +01:00
https://git.entrouvert.org/authentic.git/snapshot/authentic-main.tar.gz
2020-05-15 11:13:20 +02:00
# dependency constraints for authentic
py2: django-appconf<1.0.4
py2: django-filter<2
py3: django-filter<2.3
2020-05-15 11:13:20 +02:00
drf34: djangorestframework>=3.4,<3.4.1
drf39: djangorestframework>=3.9.2,<3.10
dj111: django<2.0
dj22: django<2.3
django-tables<2.0
2021-06-17 08:50:01 +02:00
psycopg2-binary<2.9
2020-05-15 11:13:20 +02:00
oldldap: python-ldap<3
ldaptools
# pytest requirements
pytest
pytest-cov
pytest-django
pytest-random
django-webtest
pyquery
2016-02-24 01:01:33 +01:00
commands =
2020-05-15 11:13:20 +02:00
py2: ./getlasso.sh
py3: ./getlasso3.sh
py.test {env:COVERAGE:} {env:JUNIT:} {tty:--sw:} {posargs:tests/}
2016-02-24 01:01:33 +01:00
[testenv:pylint]
usedevelop = true
2020-05-15 19:01:04 +02:00
basepython = python2.7
deps =
2020-12-26 15:21:15 +01:00
https://git.entrouvert.org/authentic.git/snapshot/authentic-main.tar.gz
2020-05-15 11:13:20 +02:00
Django<2.3
2020-05-15 19:01:04 +02:00
pylint<1.8
pylint-django<0.8.1
2016-02-24 01:01:33 +01:00
commands =
2020-05-15 11:13:20 +02:00
/bin/bash -c "./pylint.sh src/*/"
[pytest]
junit_family=xunit2
2020-05-15 15:51:25 +02:00
filterwarnings =
error
# there is nothing we can do about that
ignore:defusedxml.lxml is no longer supported:DeprecationWarning:openpyxl.xml.functions
ignore:Using or importing the ABCs from 'collections':DeprecationWarning:django.*
# remind us later
2020-10-11 17:25:16 +02:00
once