authentic2-auth-kerberos/tox.ini

48 lines
1.4 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/{env:BRANCH_NAME:}
envlist = py27-coverage-{dj18,dj111}-{pg,sqlite}-{oldldap,},pylint
[testenv]
whitelist_externals =
/bin/mv
/bin/rm
setenv =
AUTHENTIC2_SETTINGS_FILE=tests/settings.py
DJANGO_SETTINGS_MODULE=authentic2.settings
sqlite: DB_ENGINE=sqlite3
pg: DB_ENGINE=postgresql_psycopg2
coverage: COVERAGE=--cov=src --cov-branch --cov-append --cov-report xml --cov-report html
usedevelop =
coverage: true
deps =
dj18: django>1.8,<1.9
dj18: django-tables2<1.1
dj18: django-jsonfield<1.1
dj111: django>1.11,<1.12
dj111: django-tables<2.0
pg: psycopg2
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
commands =
./getlasso.sh
py.test {env:COVERAGE:} -o junit_suite_name={envname} --junit-xml=junit-{envname}.xml {posargs:tests}
[testenv:pylint]
basepython = python2.7
deps =
pylint<1.8
pylint-django<0.8.1
commands =
pylint: ./pylint.sh src/authentic2_auth_kerberos/