blob: 53f85c193440d5c14de4b4b727fff125d4def0d7 [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
Monty Taylor8d4c90c2013-05-02 14:33:18 -040016[testenv:full]
17sitepackages = True
18setenv = VIRTUAL_ENV={envdir}
Matthew Treinish59eb0b22013-08-07 15:48:21 -040019# The regex below is used to select which tests to run and exclude the slow tag:
20# See the testrepostiory bug: https://bugs.launchpad.net/testrepository/+bug/1208610
Matthew Treinish83d2ec42013-07-30 16:37:32 -040021commands =
David Kranz68a80602013-08-01 10:21:00 -040022 sh tools/pretty_tox_serial.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli)) {posargs}'
Matthew Treinish83d2ec42013-07-30 16:37:32 -040023
Matthew Treinish87af1bb2013-06-17 15:29:10 -040024[testenv:testr-full]
25sitepackages = True
26setenv = VIRTUAL_ENV={envdir}
27commands =
David Kranz68a80602013-08-01 10:21:00 -040028 sh tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli)) {posargs}'
Matthew Treinish87af1bb2013-06-17 15:29:10 -040029
Monty Taylor8d4c90c2013-05-02 14:33:18 -040030[testenv:smoke]
31sitepackages = True
32setenv = VIRTUAL_ENV={envdir}
Monty Taylor8d4c90c2013-05-02 14:33:18 -040033commands =
Matthew Treinish59eb0b22013-08-07 15:48:21 -040034 sh tools/pretty_tox_serial.sh 'smoke {posargs}'
Monty Taylor8d4c90c2013-05-02 14:33:18 -040035
Matthew Treinishd15705b2012-10-16 14:04:48 -040036[testenv:coverage]
Monty Taylor8d4c90c2013-05-02 14:33:18 -040037sitepackages = True
38setenv = VIRTUAL_ENV={envdir}
Monty Taylor8d4c90c2013-05-02 14:33:18 -040039commands =
40 python -m tools/tempest_coverage -c start --combine
Matthew Treinish59eb0b22013-08-07 15:48:21 -040041 sh tools/pretty_tox_serial.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli)) {posargs}'
Matthew Treinish04001292013-06-19 16:39:50 -040042 python -m tools/tempest_coverage -c report --html {posargs}
Matthew Treinishd15705b2012-10-16 14:04:48 -040043
Matthew Treinishcee11772013-07-02 17:50:41 -040044[testenv:stress]
45sitepackages = True
46setenv = VIRTUAL_ENV={envdir}
47commands =
Matthew Treinish7bd1cf22013-07-16 10:51:53 -040048 python -m tempest/stress/run_stress tempest/stress/etc/stress-tox-job.json -d 3600
Matthew Treinishcee11772013-07-02 17:50:41 -040049
Sean Dagueb56052b2013-05-21 17:57:41 -040050[testenv:venv]
51commands = {posargs}
Zhenguo Niud41413a2013-05-29 17:42:42 +080052deps = -r{toxinidir}/requirements.txt
53 -r{toxinidir}/test-requirements.txt
Sean Dagueb56052b2013-05-21 17:57:41 -040054
Jay Pipesa6aa5f22012-07-24 19:40:29 -040055[testenv:pep8]
Monty Taylorb2ca5ca2013-04-28 18:00:21 -070056commands = flake8
Zhenguo Niud41413a2013-05-29 17:42:42 +080057deps = -r{toxinidir}/requirements.txt
58 -r{toxinidir}/test-requirements.txt
Monty Taylorb2ca5ca2013-04-28 18:00:21 -070059
Giampaolo Lauria1b837ce2013-05-01 11:22:07 -040060[hacking]
Giampaolo Lauriad50c27d2013-05-23 15:23:12 -040061local-check-factory = tempest.hacking.checks.factory
Giampaolo Lauria1b837ce2013-05-01 11:22:07 -040062
Monty Taylorb2ca5ca2013-04-28 18:00:21 -070063[flake8]
Joe Gordondca03dd2013-07-18 14:10:19 -070064# 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 -070065ignore = E125,H302,H404
66show-source = True
67exclude = .git,.venv,.tox,dist,doc,openstack,*egg