28 lines
646 B
INI
28 lines
646 B
INI
[tox]
|
|
toxworkdir = /tmp/tox-{env:USER}/django-journal/{env:BRANCH_NAME:}
|
|
envlist = py3-coverage-{django22,django32},code-style
|
|
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
deps =
|
|
django22: django>=2.2,<2.3
|
|
django32: django>=3.2.12,<3.3
|
|
psycopg2-binary
|
|
pytest-cov
|
|
pytest
|
|
pytest-django
|
|
setenv =
|
|
PYTHONPATH=.
|
|
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
|