authentic/tox.ini

60 lines
1.8 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]
envlist = clean,django17,rbac-django17,stats
[testenv:django17]
# django.contrib.auth is not tested it does not work with our templates
setenv =
DJANGO_SETTINGS_MODULE=authentic2.settings
commands =
./getlasso.sh
py.test --junitxml=django17.xml --cov-report xml --cov=src/ --cov-config .coveragerc --ignore=src/django_rbac --nomigrations src/
mv coverage.xml django17-coverage.xml
# coverage run --source=. -a authentic2-ctl test -t src --settings=django_rbac.test_settings src/django_rbac/
usedevelop = True
deps = django>1.7,<1.8
coverage
pytest-cov
pytest-django
pytest
lxml
cssselect
pylint==1.4.0
astroid==1.3.2
[testenv:rbac-django17]
# django.contrib.auth is not tested it does not work with our templates
setenv =
DJANGO_SETTINGS_MODULE=django_rbac.test_settings
commands =
./getlasso.sh
py.test --junitxml=rbac-django17.xml --cov-report xml --cov=src/ --cov-config .coveragerc --nomigrations src/django_rbac
mv coverage.xml rbac-django17-coverage.xml
usedevelop = True
deps = django>1.7,<1.8
coverage
pytest-cov
pytest-django
pytest
lxml
cssselect
pylint==1.4.0
astroid==1.3.2
[testenv:django18]
# django.contrib.auth is not tested it does not work with our templates
commands =
./getlasso.sh
coverage run --source=. -a authentic2-ctl test -t src src/authentic2 src/authentic2_idp_cas/ src/authentic2_idp_openid/ src/authentic2_provisionning_ldap/
coverage run --source=. -a authentic2-ctl test -t src --settings=django_rbac.test_settings src/django_rbac/
usedevelop = True
deps = django>=1.8,<1.9
coverage
lxml
cssselect