37 lines
1.1 KiB
INI
37 lines
1.1 KiB
INI
[tox]
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/fargo/{env:BRANCH_NAME:}
|
|
envlist = py3-dj22-sqlite,py3-dj22-pg-djfilter2{1,4-black-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
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
|
coverage: COVERAGE=--junitxml=junit-{envname}.xml --random --cov-report xml --cov-report html --cov=fargo/
|
|
deps =
|
|
pytest
|
|
pg: psycopg2<2.9
|
|
pylint
|
|
pylint-django
|
|
dj22: django>=2.2,<2.3
|
|
djfilter21: django-filter>=2.1,<2.2
|
|
djfilter24: django-filter>=2.4,<2.5
|
|
pytest-cov
|
|
pytest-random
|
|
pytest-mock
|
|
pytest-django
|
|
pytest-freezegun
|
|
django-webtest
|
|
WebTest
|
|
mock<4
|
|
pre-commit
|
|
commands =
|
|
py.test {env:COVERAGE:} {posargs:tests/}
|
|
pylint: ./pylint.sh fargo/
|
|
black: pre-commit run black --all-files --show-diff-on-failure
|