37 lines
898 B
INI
37 lines
898 B
INI
[tox]
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/fargo/{env:BRANCH_NAME:}
|
|
envlist = py3,codestyle
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
whitelist_externals =
|
|
/bin/mv
|
|
setenv =
|
|
DJANGO_SETTINGS_MODULE=fargo.settings
|
|
FARGO_SETTINGS_FILE=tests/settings.py
|
|
JUNIT={tty::-o junit_suite_name={envname} --junit-xml=junit-{envname}.xml}
|
|
COVERAGE={tty::--cov --cov-append --cov-report xml --cov-report html --cov-context=test --cov-config=tox.ini}
|
|
deps =
|
|
django>=3.2,<3.3
|
|
django-filter>=2.4,<23.2
|
|
django-tables2==2.4.1
|
|
-r test-requirements.txt
|
|
commands =
|
|
py.test {env:JUNIT:} {env:COVERAGE:} {posargs:tests/}
|
|
|
|
[testenv:codestyle]
|
|
skip_install = true
|
|
deps =
|
|
pre-commit
|
|
commands =
|
|
pre-commit run --all-files --show-diff-on-failure
|
|
|
|
[coverage:run]
|
|
source =
|
|
fargo
|
|
tests
|
|
branch = True
|
|
|
|
[coverage:html]
|
|
show_contexts = True
|