2016-02-12 19:42:48 +01:00
|
|
|
[tox]
|
2018-03-27 08:59:04 +02:00
|
|
|
envlist = {coverage-,}py2-{dj18,dj111}-{pg,sqlite},py3-dj111-{pg,sqlite}
|
2016-04-11 19:12:21 +02:00
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/django-mellon/
|
2016-02-12 19:42:48 +01:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
whitelist_externals =
|
|
|
|
/bin/mv
|
|
|
|
setenv =
|
|
|
|
DJANGO_SETTINGS_MODULE=testsettings
|
|
|
|
PYTHONPATH=.
|
|
|
|
sqlite: DB_ENGINE=sqlite3
|
|
|
|
pg: DB_ENGINE=postgresql_psycopg2
|
2019-03-02 14:42:48 +01:00
|
|
|
coverage: COVERAGE=--cov=mellon --cov-branch --cov-append --cov-report xml --cov-report html
|
2016-02-12 19:42:48 +01:00
|
|
|
usedevelop =
|
|
|
|
coverage: true
|
|
|
|
deps =
|
|
|
|
dj18: django>1.8,<1.9
|
2018-01-09 15:26:33 +01:00
|
|
|
dj111: django>1.11,<1.12
|
2016-02-12 19:42:48 +01:00
|
|
|
pg: psycopg2
|
2018-03-27 08:59:04 +02:00
|
|
|
mock
|
2016-02-12 19:42:48 +01:00
|
|
|
httmock
|
2019-01-06 17:59:13 +01:00
|
|
|
pytest<4.1
|
2016-02-12 19:42:48 +01:00
|
|
|
pytest-cov
|
|
|
|
pytest-random
|
|
|
|
pytest-mock
|
|
|
|
pytest-django
|
2016-02-26 13:30:24 +01:00
|
|
|
pytz
|
2016-02-12 19:42:48 +01:00
|
|
|
lxml
|
|
|
|
cssselect
|
2018-05-04 15:38:59 +02:00
|
|
|
django-webtest<1.9.3
|
2016-02-12 19:42:48 +01:00
|
|
|
WebTest
|
|
|
|
pyquery
|
|
|
|
commands =
|
2018-03-27 08:59:04 +02:00
|
|
|
py2: ./getlasso.sh
|
|
|
|
py3: ./getlasso3.sh
|
2019-03-02 14:42:48 +01:00
|
|
|
py.test -o junit_suite_name={envname} --junit-xml=junit-{envname}.xml --random {env:COVERAGE:} {posargs:tests}
|
|
|
|
|
|
|
|
[testenv:pylint]
|
|
|
|
basepython = python2.7
|
|
|
|
deps =
|
|
|
|
pylint<1.8
|
|
|
|
pylint-django<0.8.1
|
|
|
|
commands =
|
|
|
|
pylint: ./pylint.sh mellon
|