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