36 lines
1.1 KiB
INI
36 lines
1.1 KiB
INI
[tox]
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/fargo/{env:BRANCH_NAME:}
|
|
envlist = py2-coverage-dj18-sqlite,py2-coverage-dj111-sqlite-pylint,py2-coverage-dj18-pg,{py2,py3}-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=--junitxml=test_results.xml --random --cov-report xml --cov-report html --cov=fargo/
|
|
deps =
|
|
dj18: django>=1.8,<1.9
|
|
dj18: django-tables2<1.1
|
|
dj111: django>=1.11,<1.12
|
|
dj111: django-tables2>=1.5,<2.0
|
|
pytest>=3.3.0,<4.1
|
|
pg: psycopg2
|
|
pylint<1.8
|
|
pylint-django<0.8.1
|
|
pytest-cov
|
|
pytest-random
|
|
pytest-mock
|
|
pytest-django
|
|
pytest-freezegun
|
|
django-webtest<1.9.3
|
|
WebTest
|
|
djangorestframework>=3.3,<3.4
|
|
mock
|
|
commands =
|
|
py.test {env:COVERAGE:} {posargs:tests/}
|
|
pylint: ./pylint.sh fargo/
|