-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathtox.ini
81 lines (69 loc) · 1.42 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[tox]
envlist = {py36,py38,py39}-{1.11,2.2,3.2,4.2}, flake8
skip_missing_interpreters =
true
[testenv]
passenv =
LANG
POSTGRES_HOST
POSTGRES_DB
POSTGRES_PASSWORD
POSTGRES_PORT
POSTGRES_USER
usedevelop = True
setenv =
TOXENV={envname}
XUNIT_FILE=pytest-{envname}.xml
commands =
pytest --cov=capone --cov-fail-under 100 {posargs}
deps =
-r{toxinidir}/requirements-dev.txt
1.11: Django>=1.11,<2
2.2: Django>=2.2,<3
3.2: Django>=3.2,<4
4.2: Django>=3.2,<5
[testenv:py36-1.11]
deps =
-r{toxinidir}/requirements-dev.txt
Django>=1.11,<2
psycopg2>=2.6.2,<2.9
[testenv:py36-2.2]
deps =
-r{toxinidir}/requirements-dev.txt
Django>=1.11,<2
psycopg2>=2.6.2,<2.9
[testenv:py38-1.11]
deps =
-r{toxinidir}/requirements-dev.txt
Django>=1.11,<2
psycopg2>=2.6.2,<2.9
[testenv:py38-2.2]
deps =
-r{toxinidir}/requirements-dev.txt
Django>=1.11,<2
psycopg2>=2.6.2,<2.9
[testenv:py39-1.11]
deps =
-r{toxinidir}/requirements-dev.txt
Django>=1.11,<2
psycopg2>=2.6.2,<2.9
[testenv:py39-2.2]
deps =
-r{toxinidir}/requirements-dev.txt
Django>=1.11,<2
psycopg2>=2.6.2,<2.9
[testenv:flake8]
commands = flake8 -v capone
[pytest]
DJANGO_SETTINGS_MODULE = capone.tests.settings
filterwarnings =
ignore: DateTimeField .* received a naive datetime:RuntimeWarning::
[flake8]
ignore = W503
exclude = */migrations/*
[coverage:run]
parallel = True
branch = True
omit =
*tests*
*migrations*