forked from ceph/teuthology
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
103 lines (86 loc) · 2.68 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
97
98
99
100
101
102
103
[tox]
envlist = docs, py3, py27, py27-integration, flake8, flake8-py3, openstack
[testenv:py27]
install_command = pip install --upgrade {opts} {packages}
passenv = HOME
sitepackages=True
deps=
-r{toxinidir}/requirements2.txt
mock==2.0.0
fudge
pytest-cov==2.8.1
coverage==4.5.4
commands=
py.test --cov=teuthology --cov-report=term -v {posargs:teuthology scripts}
[testenv:py3]
basepython=python3
install_command = pip install --upgrade {opts} {packages}
passenv = HOME
sitepackages=True
deps=
-r{toxinidir}/requirements3.txt
mock==2.0.0
fudge
pytest-cov==2.8.1
coverage==4.5.4
commands=
py.test --cov=teuthology --cov-report=term -v {posargs:teuthology scripts}
[testenv:py27-integration]
install_command = pip install --upgrade {opts} {packages}
passenv = HOME OS_REGION_NAME OS_AUTH_URL OS_TENANT_ID OS_TENANT_NAME OS_PASSWORD OS_USERNAME
sitepackages=True
deps=
-r{toxinidir}/requirements2.txt
mock==2.0.0
fudge
pytest-cov==2.8.1
coverage==4.5.4
commands=py.test --cov=teuthology --cov-report=term -v {posargs:teuthology/test/integration teuthology/orchestra/test/integration}
basepython=python2.7
[testenv:flake8]
install_command = pip install --upgrade {opts} {packages}
deps=
flake8
commands=flake8 --select=F,E9 {posargs:teuthology scripts}
[testenv:flake8-py3]
basepython=python3
install_command = pip install --upgrade {opts} {packages}
deps=
flake8
commands=flake8 --select=F,E9 {posargs:teuthology scripts}
[testenv:docs]
basepython=python3
install_command = pip install --upgrade {opts} {packages}
changedir=docs
deps=
-r{toxinidir}/requirements3.txt
sphinx
sphinxcontrib-programoutput
mock==2.0.0
commands=
sphinx-apidoc -f -o . ../teuthology ../teuthology/test ../teuthology/orchestra/test ../teuthology/task/test
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:openstack]
install_command = pip install --upgrade {opts} {packages}
passenv = HOME OS_REGION_NAME OS_AUTH_URL OS_TENANT_ID OS_TENANT_NAME OS_PASSWORD OS_USERNAME
sitepackages=True
deps=
-r{toxinidir}/requirements2.txt
mock==2.0.0
commands=py.test -v {posargs:teuthology/openstack/test/test_openstack.py}
basepython=python2.7
[testenv:openstack-integration]
passenv = HOME OS_REGION_NAME OS_AUTH_URL OS_TENANT_ID OS_TENANT_NAME OS_PASSWORD OS_USERNAME
basepython=python2
deps=
-r{toxinidir}/requirements2.txt
mock==2.0.0
commands=
py.test -v {posargs} teuthology/openstack/test/openstack-integration.py
[testenv:openstack-delegate]
passenv = HOME OS_REGION_NAME OS_AUTH_URL OS_TENANT_ID OS_TENANT_NAME OS_PASSWORD OS_USERNAME
basepython=python2
sitepackages=True
deps=
-r{toxinidir}/requirements2.txt
commands={toxinidir}/openstack-delegate.sh