fargo/tox.ini

33 lines
911 B
INI

[tox]
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/fargo/
envlist = coverage-dj18-sqlite,coverage-dj111-sqlite
[testenv]
usedevelop = True
whitelist_externals =
/bin/mv
setenv =
sqlite: DB_ENGINE=sqlite3
pg: DB_ENGINE=postgresql_psycopg2
DJANGO_SETTINGS_MODULE=fargo.settings
FARGO_SETTINGS_FILE=tests/settings.py
coverage: COVERAGE=--cov=fargo --cov-report xml
deps =
dj18: django>=1.8,<1.9
dj18: django-tables2<1.1
dj111: django>=1.11,<1.12
dj111: django-tables2>=1.5
pytest>=3.3.0
pytest-cov
pytest-random
pytest-mock
pytest-django
pytest-freezegun
django-webtest
WebTest
djangorestframework>=3.3,<3.4
commands =
py.test {env:COVERAGE:} {posargs:--random --junit-xml=junit-{envname}.xml tests}
coverage: mv coverage.xml coverage-{envname}.xml