fargo/tox.ini

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

37 lines
898 B
INI
Raw Normal View History

2016-03-22 16:03:41 +01:00
[tox]
2019-03-31 16:07:21 +02:00
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/fargo/{env:BRANCH_NAME:}
envlist = py3,codestyle
2016-03-22 16:03:41 +01:00
[testenv]
usedevelop = True
whitelist_externals =
/bin/mv
2016-03-22 16:03:41 +01:00
setenv =
2018-03-23 16:39:52 +01:00
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}
2016-03-22 16:03:41 +01:00
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
2016-03-22 16:03:41 +01:00
commands =
pre-commit run --all-files --show-diff-on-failure
[coverage:run]
source =
fargo
tests
branch = True
[coverage:html]
show_contexts = True