authentic2-cut/tox.ini

50 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-cut/{env:BRANCH_NAME:}
envlist = py{27,3}-coverage-dj111-pg
[testenv]
# django.contrib.auth is not tested it does not work with our templates
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=test_{envname}_results.xml --cov-report xml --cov-report html --cov=src/ --cov-config .coveragerc
fast: FAST=--nomigrations
usedevelop =
coverage: True
nocoverage: False
deps =
dj111: django>=1.11,<1.12
dj111: django-tables2>=1.1,<2
pg: psycopg2
coverage
pytest-cov
pytest-django<3.4.6
mock
pytest
lxml
cssselect
pylint
pylint-django<0.8.1
django-webtest<1.9.3
WebTest
pyquery
httmock
pytz
requests
pytest-freezegun
enum34<=1.1.6
py27: django-appconf<1.0.4
http://git.entrouvert.org/authentic.git/snapshot/authentic-master.tar.gz
commands =
py27: ./getlasso.sh
py3: ./getlasso3.sh
dj111: ./pylint.sh src/authentic2_cut
py.test {env:FAST:} {env:COVERAGE:} {posargs:tests/}