blob: 7eae9489089701b9f6952aab84246bcb2fbcbd56 [file] [log] [blame]
Jay Pipesa6aa5f22012-07-24 19:40:29 -04001[tox]
2envlist = pep8
3
4[testenv]
5setenv = VIRTUAL_ENV={envdir}
Matthew Treinish87af1bb2013-06-17 15:29:10 -04006 LANG=en_US.UTF-8
7 LANGUAGE=en_US:en
8 LC_ALL=C
Monty Taylor8d4c90c2013-05-02 14:33:18 -04009
Giampaolo Lauria7a3e0042013-06-07 14:59:19 -040010[testenv:all]
11sitepackages = True
12setenv = VIRTUAL_ENV={envdir}
Giampaolo Lauria7a3e0042013-06-07 14:59:19 -040013commands =
Matthew Treinish87af1bb2013-06-17 15:29:10 -040014 python setup.py testr --slowest
15
Giampaolo Lauria7a3e0042013-06-07 14:59:19 -040016
Monty Taylor8d4c90c2013-05-02 14:33:18 -040017[testenv:full]
18sitepackages = True
19setenv = VIRTUAL_ENV={envdir}
20 NOSE_WITH_OPENSTACK=1
21 NOSE_OPENSTACK_COLOR=1
22 NOSE_OPENSTACK_RED=15
23 NOSE_OPENSTACK_YELLOW=3
24 NOSE_OPENSTACK_SHOW_ELAPSED=1
25 NOSE_OPENSTACK_STDOUT=1
26commands =
Sean Dague1937d092013-05-17 16:36:38 -040027 nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit --xunit-file=nosetests-full.xml -sv tempest/api tempest/scenario tempest/thirdparty tempest/cli
Monty Taylor8d4c90c2013-05-02 14:33:18 -040028
Matthew Treinish83d2ec42013-07-30 16:37:32 -040029[testenv:testr-serial]
30sitepackages = True
31setenv = VIRTUAL_ENV={envdir}
32commands =
33 sh tools/pretty_tox_serial.sh '{posargs} tempest.api tempest.scenario tempest.thirdparty tempest.cli'
34
Matthew Treinish87af1bb2013-06-17 15:29:10 -040035[testenv:testr-full]
36sitepackages = True
37setenv = VIRTUAL_ENV={envdir}
38commands =
Matthew Treinishe2955c02013-07-26 11:38:31 -040039 sh tools/pretty_tox.sh 'tempest.api tempest.scenario tempest.thirdparty tempest.cli {posargs}'
Matthew Treinish87af1bb2013-06-17 15:29:10 -040040
Monty Taylor8d4c90c2013-05-02 14:33:18 -040041[testenv:smoke]
42sitepackages = True
43setenv = VIRTUAL_ENV={envdir}
44 NOSE_WITH_OPENSTACK=1
45 NOSE_OPENSTACK_COLOR=1
46 NOSE_OPENSTACK_RED=15
47 NOSE_OPENSTACK_YELLOW=3
48 NOSE_OPENSTACK_SHOW_ELAPSED=1
49 NOSE_OPENSTACK_STDOUT=1
50commands =
51 nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit -sv --attr=type=smoke --xunit-file=nosetests-smoke.xml tempest
52
Matthew Treinishd15705b2012-10-16 14:04:48 -040053[testenv:coverage]
Monty Taylor8d4c90c2013-05-02 14:33:18 -040054sitepackages = True
55setenv = VIRTUAL_ENV={envdir}
56 NOSE_WITH_OPENSTACK=1
57 NOSE_OPENSTACK_COLOR=1
58 NOSE_OPENSTACK_RED=15
59 NOSE_OPENSTACK_YELLOW=3
60 NOSE_OPENSTACK_SHOW_ELAPSED=1
61 NOSE_OPENSTACK_STDOUT=1
62commands =
63 python -m tools/tempest_coverage -c start --combine
Sean Dague1937d092013-05-17 16:36:38 -040064 nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit --xunit-file=nosetests-full.xml -sv tempest/api tempest/scenario tempest/thirdparty tempest/cli
Matthew Treinish04001292013-06-19 16:39:50 -040065 python -m tools/tempest_coverage -c report --html {posargs}
Matthew Treinishd15705b2012-10-16 14:04:48 -040066
Matthew Treinishcee11772013-07-02 17:50:41 -040067[testenv:stress]
68sitepackages = True
69setenv = VIRTUAL_ENV={envdir}
70commands =
Matthew Treinish7bd1cf22013-07-16 10:51:53 -040071 python -m tempest/stress/run_stress tempest/stress/etc/stress-tox-job.json -d 3600
Matthew Treinishcee11772013-07-02 17:50:41 -040072
Sean Dagueb56052b2013-05-21 17:57:41 -040073[testenv:venv]
74commands = {posargs}
Zhenguo Niud41413a2013-05-29 17:42:42 +080075deps = -r{toxinidir}/requirements.txt
76 -r{toxinidir}/test-requirements.txt
Sean Dagueb56052b2013-05-21 17:57:41 -040077
Jay Pipesa6aa5f22012-07-24 19:40:29 -040078[testenv:pep8]
Monty Taylorb2ca5ca2013-04-28 18:00:21 -070079commands = flake8
Zhenguo Niud41413a2013-05-29 17:42:42 +080080deps = -r{toxinidir}/requirements.txt
81 -r{toxinidir}/test-requirements.txt
Monty Taylorb2ca5ca2013-04-28 18:00:21 -070082
Giampaolo Lauria1b837ce2013-05-01 11:22:07 -040083[hacking]
Giampaolo Lauriad50c27d2013-05-23 15:23:12 -040084local-check-factory = tempest.hacking.checks.factory
Giampaolo Lauria1b837ce2013-05-01 11:22:07 -040085
Monty Taylorb2ca5ca2013-04-28 18:00:21 -070086[flake8]
Joe Gordondca03dd2013-07-18 14:10:19 -070087# E125 is a won't fix until https://github.com/jcrocholl/pep8/issues/126 is resolved. For further detail see https://review.openstack.org/#/c/36788/
Monty Taylorb2ca5ca2013-04-28 18:00:21 -070088ignore = E125,H302,H404
89show-source = True
90exclude = .git,.venv,.tox,dist,doc,openstack,*egg