37 lines
763 B
INI
37 lines
763 B
INI
[tox]
|
|
envlist = {coverage-,}{dj18,dj111}-{pg,sqlite}
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/django-mellon/
|
|
|
|
[testenv]
|
|
whitelist_externals =
|
|
/bin/mv
|
|
setenv =
|
|
DJANGO_SETTINGS_MODULE=testsettings
|
|
PYTHONPATH=.
|
|
sqlite: DB_ENGINE=sqlite3
|
|
pg: DB_ENGINE=postgresql_psycopg2
|
|
coverage: COVERAGE=--junit-xml=junit-{envname}.xml --cov=mellon --cov-report xml
|
|
usedevelop =
|
|
coverage: true
|
|
nocoverage: false
|
|
deps =
|
|
dj18: django>1.8,<1.9
|
|
dj111: django>1.11,<1.12
|
|
pg: psycopg2
|
|
httmock
|
|
pytest
|
|
pytest-cov
|
|
pytest-random
|
|
pytest-mock
|
|
pytest-django
|
|
pytz
|
|
lxml
|
|
cssselect
|
|
django-webtest
|
|
WebTest
|
|
pyquery
|
|
commands =
|
|
./getlasso.sh
|
|
py.test --random {env:COVERAGE:} {posargs:tests}
|
|
coverage: mv coverage.xml coverage-{envname}.xml
|