-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathtox.ini
82 lines (67 loc) · 2.21 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
[tox]
minversion = 2.0
envlist = py27-constraints,pypy-constraints,pep8-constraints,py310,py312
skipsdist = True
[testenv]
usedevelop = True
install_command =
constraints: {[testenv:common-constraints]install_command}
pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
OS_TEST_TIMEOUT=120
LANG=en_US.utf8
deps = -r{toxinidir}/test-requirements.txt
commands = python setup.py test --slowest --testr-args='{posargs}'
[testenv:common-constraints]
install_command = pip install {opts} {packages}
[testenv:pep8]
commands =
flake8 {posargs}
aimctl -c aim/tests/etc/aim.conf.test db-migration upgrade
[testenv:pep8-constraints]
install_command = {[testenv:common-constraints]install_command}
commands = flake8 {posargs}
[testenv:venv]
commands = {posargs}
[testenv:venv-constraints]
install_command = {[testenv:common-constraints]install_command}
commands = {posargs}
[testenv:cover]
commands =
coverage erase
coverage run -m testtools.run
coverage report --include="*aim*" --omit="*test*" --omit="*.tox*" -m
[testenv:cover-constraints]
install_command = {[testenv:common-constraints]install_command}
commands = python setup.py test --coverage --testr-args='{posargs}'
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:docs-constraints]
install_command = {[testenv:common-constraints]install_command}
commands = python setup.py build_sphinx
[testenv:debug]
commands = oslo_debug_helper {posargs}
[testenv:debug-constraints]
install_command = {[testenv:common-constraints]install_command}
commands = oslo_debug_helper {posargs}
[testenv:k8s]
basepython=python2.7
usedevelop = True
install_command =
constraints: {[testenv:common-constraints]install_command}
pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
K8S_STORE=True
deps = -r{toxinidir}/test-requirements.txt
commands = python setup.py test --slowest --testr-args='{posargs}'
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
# H238 using old style classes for lightweight structures
# E711 needed in testing
# H202 needed in testing
show-source = True
ignore = E123,E125,H238,E711,H202
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build