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.
|
|
|
|
|
|
|
|
|
2016-03-08 13:34:29 +01:00
|
|
|
[tox]
|
2019-02-04 13:04:13 +01:00
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/authentic2-auth-kerberos/{env:BRANCH_NAME:}
|
2019-03-07 23:09:37 +01:00
|
|
|
envlist = py27-coverage-{dj18,dj111}-{pg,sqlite}-{oldldap,},pylint
|
2016-02-24 01:01:33 +01:00
|
|
|
|
2016-03-08 13:34:29 +01:00
|
|
|
[testenv]
|
|
|
|
whitelist_externals =
|
|
|
|
/bin/mv
|
2019-02-04 13:04:13 +01:00
|
|
|
/bin/rm
|
2016-02-24 01:01:33 +01:00
|
|
|
setenv =
|
2016-09-06 15:01:29 +02:00
|
|
|
AUTHENTIC2_SETTINGS_FILE=tests/settings.py
|
2016-02-24 01:01:33 +01:00
|
|
|
DJANGO_SETTINGS_MODULE=authentic2.settings
|
2016-03-08 13:34:29 +01:00
|
|
|
sqlite: DB_ENGINE=sqlite3
|
|
|
|
pg: DB_ENGINE=postgresql_psycopg2
|
2019-05-10 11:26:40 +02:00
|
|
|
|
|
|
|
JUNIT={tty::-o junit_suite_name={envname} --junit-xml=junit-{envname}.xml}
|
2019-02-04 13:04:13 +01:00
|
|
|
coverage: COVERAGE=--cov=src --cov-branch --cov-append --cov-report xml --cov-report html
|
2019-05-10 11:26:40 +02:00
|
|
|
|
|
|
|
# support for pg_virtualenv
|
|
|
|
PGPORT={env:PGPORT:}
|
|
|
|
PGHOST={env:PGHOST:}
|
|
|
|
PGUSER={env:PGUSER:}
|
|
|
|
PGPASSWORD={env:PGPASSWORD:}
|
2016-03-08 13:34:29 +01:00
|
|
|
usedevelop =
|
|
|
|
coverage: true
|
|
|
|
deps =
|
|
|
|
dj18: django>1.8,<1.9
|
2018-11-27 10:14:06 +01:00
|
|
|
dj18: django-tables2<1.1
|
2019-03-17 18:17:20 +01:00
|
|
|
dj18: django-jsonfield<1.1
|
2018-11-27 10:14:06 +01:00
|
|
|
dj111: django>1.11,<1.12
|
|
|
|
dj111: django-tables<2.0
|
2016-03-08 13:34:29 +01:00
|
|
|
pg: psycopg2
|
2017-12-01 12:06:14 +01:00
|
|
|
pytest>=3.3.0
|
2016-02-24 01:01:33 +01:00
|
|
|
pytest-cov
|
|
|
|
pytest-random
|
|
|
|
pytest-django
|
|
|
|
ldaptools
|
|
|
|
http://git.entrouvert.org/authentic.git/snapshot/authentic-master.tar.bz2
|
2019-03-07 23:09:37 +01:00
|
|
|
oldldap: python-ldap<3
|
2016-02-24 01:01:33 +01:00
|
|
|
commands =
|
2016-03-08 13:34:29 +01:00
|
|
|
./getlasso.sh
|
2019-05-10 11:26:40 +02:00
|
|
|
py.test {env:COVERAGE:} {env:JUNIT:} {posargs:tests}
|
2016-02-24 01:01:33 +01:00
|
|
|
|
2019-02-04 13:04:13 +01:00
|
|
|
[testenv:pylint]
|
|
|
|
basepython = python2.7
|
|
|
|
deps =
|
|
|
|
pylint<1.8
|
|
|
|
pylint-django<0.8.1
|
2016-02-24 01:01:33 +01:00
|
|
|
commands =
|
2019-02-04 13:04:13 +01:00
|
|
|
pylint: ./pylint.sh src/authentic2_auth_kerberos/
|