forked from pozetroninc/capone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
51 lines (46 loc) · 1.09 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
[tox]
install_command = pip install {opts} {packages}
envlist = py36-{1.8,1.9,1.10,1.11}, py38-{2,3}, flake8
[testenv]
passenv = LANG POSTGRES_HOST POSTGRES_DB POSTGRES_PASSWORD POSTGRES_PORT POSTGRES_USER
usedevelop = True
setenv =
TOXENV={envname}
XUNIT_FILE=pytest-{envname}.xml
commands =
{envbindir}/pytest \
--cov=capone\
--cov-append \
--cov-report xml:coverage/coverage.xml \
--cov-report html:coverage/ \
--cov-fail-under 100 \
--junitxml=$XUNIT_FILE \
-v -rx \
capone
deps =
-r{toxinidir}/requirements-dev.txt
1.8: pytest-django<4
1.9: pytest-django<4
1.10: pytest-django<4
1.11: pytest-django<4
2: pytest-django>=4
3: pytest-django>=4
1.8: Django>=1.8,<1.9
1.9: Django>=1.9,<1.10
1.10: Django>=1.10,<1.11
1.11: Django>=1.11,<2
2: Django>=2,<3
3: Django>=3
[testenv:flake8]
commands = {envbindir}/flake8 -v capone
[pytest]
DJANGO_SETTINGS_MODULE = capone.tests.settings
[flake8]
ignore = W503
exclude = */migrations/*
[coverage:run]
parallel = True
branch = True
omit =
*tests*
*migrations*