django-journal/tox.ini

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
646 B
INI
Raw Permalink Normal View History

2019-06-06 17:35:40 +02:00
[tox]
toxworkdir = /tmp/tox-{env:USER}/django-journal/{env:BRANCH_NAME:}
envlist = py3-coverage-{django22,django32},code-style
2019-06-06 17:35:40 +02:00
[testenv]
usedevelop = True
deps =
django22: django>=2.2,<2.3
django32: django>=3.2.12,<3.3
psycopg2-binary
pytest-cov
2019-06-06 17:35:40 +02:00
pytest
pytest-django
2019-06-06 17:35:40 +02:00
setenv =
PYTHONPATH=.
2019-06-06 17:35:40 +02:00
DJANGO_SETTINGS_MODULE=test_settings
coverage: COVERAGE=--cov-append --cov-report xml --cov-report html --cov=django_journal/
2019-06-06 17:35:40 +02:00
commands =
py.test {posargs: {env:COVERAGE:} --junitxml=junit-{envname}.xml tests/}
[testenv:code-style]
skip_install = true
deps =
pre-commit
commands =
pre-commit run --all-files --show-diff-on-failure