# 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-{dj18,dj111}-{pg,sqlite} [testenv] whitelist_externals = /bin/mv /bin/rm 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-report html --cov=src/ --cov-config .coveragerc fast: FAST=--nomigrations PGPORT={env:PGPORT:} PGHOST={env:PGHOST:} PGUSER={env:PGUSER:} PGPASSWORD={env:PGPASSWORD:} usedevelop = coverage: True nocoverage: False deps = dj18: django>1.8,<1.9 dj18: django-tables2<1.1 dj18: django-jsonfield<1.1 dj111: django<2.0 dj111: django-tables<2.0 pg: psycopg2 coverage pytest-cov pytest-django mock pytest<4.1 lxml cssselect pylint pylint-django<=0.11 django-webtest<1.9.3 WebTest pyquery httmock pytz requests git+https://git.entrouvert.org/authentic.git commands = ./getlasso.sh py.test {env:FAST:} {env:COVERAGE:} {posargs:tests/} coverage: mv coverage.xml coverage-{envname}.xml coverage: rm -rf htmlcov-{envname} coverage: mv htmlcov htmlcov-{envname} coverage-dj111-pg: ./pylint.sh src/authentic2-auth-fc/