-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
tox.ini
97 lines (84 loc) · 1.94 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[tox]
envlist =
py3{7,8,9,10,11}-django32,
py3{8,9,10,11}-django40,
py3{8,9,10,11}-django41,
; py3{8,9,10,11}-django42,
; py3{8,9,10,11}-django50,
; py3{8,9,10,11}-django51,
; py3{8,9,10,11}-django52,
; py3{8,9,10,11}-django60,
report,
flake8,
docs
skip_missing_interpreters = True
;use_develop = True
[testenv]
deps =
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
; django42: Django>=4.2,<4.3
; django50: Django>=5.0,<5.1
; django51: Django>=5.1,<5.2
; django52: Django>=5.2,<5.3
; django60: Django>=6.0,<6.1
-e{toxinidir}[tests]
depends =
report: py3{7,8,9,10,11}-django32,py3{8,9,10,11}-django40,py3{8,9,10,11}-django41
envlist =
py3{7,8,9,10,11}-django32,
py3{8,9,10,11}-django40,
py3{8,9,10,11}-django41,
; py3{8,9,10,11}-django42,
; py3{8,9,10,11}-django50,
; py3{8,9,10,11}-django51,
; py3{8,9,10,11}-django52,
; py3{8,9,10,11}-django60,
setenv =
COVERAGE_FILE = {toxinidir}/.coverage.{envname}
commands =
py.test --cov-config={toxinidir}/.coveragerc {posargs:-v}
skip_install = True
changedir = {toxinidir}
[testenv:report]
skip_install = true
deps = coverage
commands =
coverage combine
coverage html
coverage report --fail-under=100
setenv =
COVERAGE_FILE =
[testenv:flake8]
deps = flake8
commands = flake8 --ignore=W391 django_admin_generator {posargs}
[testenv:docs]
basepython = python3
deps = -e{toxinidir}[tests,docs]
allowlist_externals =
rm
mkdir
whitelist_externals =
rm
cd
mkdir
commands =
sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html {posargs}
[testenv:coveralls]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
commands =
pip freeze
python setup.py test
coveralls
deps =
Django
-e{toxinidir}[tests]
coveralls
[flake8]
ignore = W391, W504, E741, W503, E131
exclude =
docs,
build,
.tox,
test_project/*.py,