Skip to content

Commit 17dfb1b

Browse files
committed
Put the logic from devstack gate into tox.
Change-Id: Idb4a5a0b5eeca266603db8737d65120864de1c6a
1 parent 481116d commit 17dfb1b

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

tox.ini

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,32 @@ setenv = VIRTUAL_ENV={envdir}
99
NOSE_OPENSTACK_YELLOW=3
1010
NOSE_OPENSTACK_SHOW_ELAPSED=1
1111
NOSE_OPENSTACK_STDOUT=1
12-
deps = -r{toxinidir}/tools/pip-requires
13-
-r{toxinidir}/tools/test-requires
14-
commands = nosetests {posargs}
12+
13+
[testenv:full]
14+
sitepackages = True
15+
setenv = VIRTUAL_ENV={envdir}
16+
NOSE_WITH_OPENSTACK=1
17+
NOSE_OPENSTACK_COLOR=1
18+
NOSE_OPENSTACK_RED=15
19+
NOSE_OPENSTACK_YELLOW=3
20+
NOSE_OPENSTACK_SHOW_ELAPSED=1
21+
NOSE_OPENSTACK_STDOUT=1
22+
commands =
23+
nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit --xunit-file=nosetests-full.xml -sv tempest
24+
nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit --xunit-file=nosetests-cli.xml -sv cli
25+
26+
[testenv:smoke]
27+
sitepackages = True
28+
setenv = VIRTUAL_ENV={envdir}
29+
NOSE_WITH_OPENSTACK=1
30+
NOSE_OPENSTACK_COLOR=1
31+
NOSE_OPENSTACK_RED=15
32+
NOSE_OPENSTACK_YELLOW=3
33+
NOSE_OPENSTACK_SHOW_ELAPSED=1
34+
NOSE_OPENSTACK_STDOUT=1
35+
commands =
36+
nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit -sv --attr=type=smoke --xunit-file=nosetests-smoke.xml tempest
37+
1538

1639
[testenv:pep8]
1740
deps = pep8==1.3.3

0 commit comments

Comments
 (0)