authentic/tox.ini

47 lines
1.2 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-fc/
envlist = {coverage,nocoverage}-{dj18}-{pg,sqlite}
[testenv]
# django.contrib.auth is not tested it does not work with our templates
whitelist_externals =
/bin/mv
setenv =
AUTHENTIC2_SETTINGS_FILE=tests/settings.py
DJANGO_SETTINGS_MODULE=authentic2.settings
sqlite: DB_ENGINE=django.db.backends.sqlite3
pg: DB_ENGINE=django.db.backends.postgresql_psycopg2
coverage: COVERAGE=--junitxml=junit-{envname}.xml --cov-report xml --cov=src/ --cov-config .coveragerc
fast: FAST=--nomigrations
usedevelop =
coverage: True
nocoverage: False
deps =
dj18: django>1.8,<1.9
dj19: django>1.8,<1.9
pg: psycopg2<2.7
coverage
pytest-cov
pytest-django
mock
pytest
lxml
cssselect
pylint
pylint-django
django-webtest
WebTest
pyquery
httmock
pytest-catchlog
pytz
../authentic2
commands =
./getlasso.sh
py.test {env:FAST:} {env:COVERAGE:} {posargs:tests/}