-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathtox.ini
More file actions
131 lines (114 loc) · 2.15 KB
/
tox.ini
File metadata and controls
131 lines (114 loc) · 2.15 KB
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
[tox]
distshare={homedir}/.tox/distshare
envlist=
{py27,py34,py35}-static_check
py27-idempotent-ids-checker
py27-steps-checker
py27-unittests
check-fixtures
skipsdist=True
[testenv]
recreate=True
whitelist_externals =
find
[base]
commands =
find . -type f -name "*.pyc" -delete
[tox:jenkins]
toxworkdir={homedir}/.tox-{env:JOB_NAME}
[flake8]
filename=*.py
ignore = E731,H405,H304
exclude = .venv,.git,.tox,dist,doc,*egg,build,releasenotes
max-complexity=25
[py_test]
commands=
{[base]commands}
py.test {posargs}
[static_check]
deps=
flake8<3.0.0
hacking
commands=
{[base]commands}
flake8
[testenv:py27-static_check]
basepython =
python2.7
deps=
{[static_check]deps}
commands=
{[static_check]commands}
[testenv:py34-static_check]
basepython =
python3.4
deps=
{[static_check]deps}
commands=
{[static_check]commands}
[testenv:py35-static_check]
basepython =
python3.5
deps=
{[static_check]deps}
commands=
{[static_check]commands}
[testenv:py27-steps-checker]
basepython =
python2.7
deps =
-e.
commands =
{[py_test]commands} stepler --steps-check-only --force-destructive
[testenv:py27-idempotent-ids-checker]
basepython =
python2.7
deps =
-e.
commands =
{[py_test]commands} stepler --check-idempotent_id --force-destructive
[testenv:py27-unittests]
basepython =
python2.7
deps =
pytest-catchlog
-e.
commands =
{[py_test]commands} unittests -v
[testenv:check-fixtures]
deps =
-e.
commands =
{[py_test]commands} stepler --disable-steps-checker --force-destructive --setup-plan
[testenv:cinder]
passenv = *
basepython =
python2.7
deps =
-e.[libvirt]
commands =
{[py_test]commands} stepler/cinder
[testenv:nova]
passenv = *
basepython =
python2.7
deps =
-e.[libvirt]
commands =
{[py_test]commands} stepler/nova
[testenv:heat]
passenv = *
basepython =
python2.7
deps =
-e.[libvirt]
commands =
{[py_test]commands} stepler/heat
[testenv:docs]
setenv = PYTHONHASHSEED=0
sitepackages = False
basepython =
python2.7
deps = -r{toxinidir}/requirements.txt
commands =
sphinx-build -a -E -n ./doc/source/ ./doc/build