26 lines
589 B
INI
26 lines
589 B
INI
[tox]
|
|
toxworkdir = /tmp/tox-{env:USER}/django-journal/{env:BRANCH_NAME:}
|
|
envlist = py3-coverage-django22,code-style
|
|
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
deps =
|
|
django22: django>=2.2,<2.3
|
|
psycopg2<2.9
|
|
pytest-cov
|
|
pytest
|
|
pytest-django<4.3
|
|
setenv =
|
|
DJANGO_SETTINGS_MODULE=test_settings
|
|
coverage: COVERAGE=--cov-append --cov-report xml --cov-report html --cov=django_journal/
|
|
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
|