34 lines
973 B
INI
34 lines
973 B
INI
[tox]
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/fargo/
|
|
envlist = coverage-dj18-sqlite,coverage-dj111-sqlite,coverage-dj18-pg,coverage-dj111-pg
|
|
|
|
[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
|
|
pg: psycopg2
|
|
pytest-cov
|
|
pytest-random
|
|
pytest-mock
|
|
pytest-django
|
|
pytest-freezegun
|
|
django-webtest<1.9.3
|
|
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
|
|
|