fargo/tox.ini

33 lines
888 B
INI

[tox]
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/fargo/{env:BRANCH_NAME:}
envlist = {py2,py3}-dj111-{sqlite,pg}-coverage-pylint
[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=junit-{envname}.xml --random --cov-report xml --cov-report html --cov=fargo/
deps =
pytest
pg: psycopg2
pylint<1.8
pylint-django<0.8.1
attrs<19.2
pytest-cov
pytest-random
pytest-mock
pytest-django
pytest-freezegun
django-webtest<1.9.3
WebTest
mock
py2: django-jsonfield<1.3
commands =
py.test {env:COVERAGE:} {posargs:tests/}
pylint: ./pylint.sh fargo/