authentic2-auth-kerberos/tox.ini

55 lines
1.5 KiB
INI

# 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]
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/authentic2-auth-kerberos/
envlist = py27-coverage-dj111{-oldldap,},py3-coverage-dj111,pylint
[testenv]
whitelist_externals =
/bin/mv
/bin/rm
setenv =
AUTHENTIC2_SETTINGS_FILE=tests/settings.py
DJANGO_SETTINGS_MODULE=authentic2.settings
DB_ENGINE=postgresql_psycopg2
JUNIT={tty::-o junit_suite_name={envname} --junit-xml=junit-{envname}.xml}
coverage: COVERAGE=--cov=src --cov-branch --cov-append --cov-report xml --cov-report html
# support for pg_virtualenv
PGPORT={env:PGPORT:}
PGHOST={env:PGHOST:}
PGUSER={env:PGUSER:}
PGPASSWORD={env:PGPASSWORD:}
usedevelop =
coverage: true
deps =
dj111: django>1.11,<1.12
dj111: django-tables<2.0
psycopg2-binary
pytest>=3.3.0
pytest-cov
pytest-random
pytest-django
ldaptools
http://git.entrouvert.org/authentic.git/snapshot/authentic-master.tar.bz2
oldldap: python-ldap<3
django-webtest
py27: django-appconf<1.0.4
commands =
py27: ./getlasso.sh
py3: ./getlasso3.sh
py.test {env:COVERAGE:} {env:JUNIT:} {posargs:tests}
[testenv:pylint]
basepython = python2.7
deps =
pylint<1.8
pylint-django<0.8.1
commands =
pylint: ./pylint.sh src/authentic2_auth_kerberos/