Jay Pipes | a6aa5f2 | 2012-07-24 19:40:29 -0400 | [diff] [blame] | 1 | [tox] |
| 2 | envlist = pep8 |
| 3 | |
| 4 | [testenv] |
| 5 | setenv = VIRTUAL_ENV={envdir} |
Matthew Treinish | 87af1bb | 2013-06-17 15:29:10 -0400 | [diff] [blame] | 6 | LANG=en_US.UTF-8 |
| 7 | LANGUAGE=en_US:en |
| 8 | LC_ALL=C |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 9 | |
Giampaolo Lauria | 7a3e004 | 2013-06-07 14:59:19 -0400 | [diff] [blame] | 10 | [testenv:all] |
| 11 | sitepackages = True |
| 12 | setenv = VIRTUAL_ENV={envdir} |
Giampaolo Lauria | 7a3e004 | 2013-06-07 14:59:19 -0400 | [diff] [blame] | 13 | commands = |
Matthew Treinish | eda037c | 2013-08-09 16:57:28 -0400 | [diff] [blame^] | 14 | python setup.py testr --slowest --testr-args='{posargs}' |
Matthew Treinish | 87af1bb | 2013-06-17 15:29:10 -0400 | [diff] [blame] | 15 | |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 16 | [testenv:full] |
| 17 | sitepackages = True |
| 18 | setenv = VIRTUAL_ENV={envdir} |
Matthew Treinish | 59eb0b2 | 2013-08-07 15:48:21 -0400 | [diff] [blame] | 19 | # 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 Treinish | 83d2ec4 | 2013-07-30 16:37:32 -0400 | [diff] [blame] | 21 | commands = |
David Kranz | 68a8060 | 2013-08-01 10:21:00 -0400 | [diff] [blame] | 22 | sh tools/pretty_tox_serial.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli)) {posargs}' |
Matthew Treinish | 83d2ec4 | 2013-07-30 16:37:32 -0400 | [diff] [blame] | 23 | |
Matthew Treinish | 87af1bb | 2013-06-17 15:29:10 -0400 | [diff] [blame] | 24 | [testenv:testr-full] |
| 25 | sitepackages = True |
| 26 | setenv = VIRTUAL_ENV={envdir} |
| 27 | commands = |
David Kranz | 68a8060 | 2013-08-01 10:21:00 -0400 | [diff] [blame] | 28 | sh tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli)) {posargs}' |
Matthew Treinish | 87af1bb | 2013-06-17 15:29:10 -0400 | [diff] [blame] | 29 | |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 30 | [testenv:smoke] |
| 31 | sitepackages = True |
| 32 | setenv = VIRTUAL_ENV={envdir} |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 33 | commands = |
Matthew Treinish | 59eb0b2 | 2013-08-07 15:48:21 -0400 | [diff] [blame] | 34 | sh tools/pretty_tox_serial.sh 'smoke {posargs}' |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 35 | |
Matthew Treinish | d15705b | 2012-10-16 14:04:48 -0400 | [diff] [blame] | 36 | [testenv:coverage] |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 37 | sitepackages = True |
| 38 | setenv = VIRTUAL_ENV={envdir} |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 39 | commands = |
| 40 | python -m tools/tempest_coverage -c start --combine |
Matthew Treinish | eda037c | 2013-08-09 16:57:28 -0400 | [diff] [blame^] | 41 | sh tools/pretty_tox_serial.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli))' |
Matthew Treinish | 0400129 | 2013-06-19 16:39:50 -0400 | [diff] [blame] | 42 | python -m tools/tempest_coverage -c report --html {posargs} |
Matthew Treinish | d15705b | 2012-10-16 14:04:48 -0400 | [diff] [blame] | 43 | |
Matthew Treinish | cee1177 | 2013-07-02 17:50:41 -0400 | [diff] [blame] | 44 | [testenv:stress] |
| 45 | sitepackages = True |
| 46 | setenv = VIRTUAL_ENV={envdir} |
| 47 | commands = |
Matthew Treinish | 7bd1cf2 | 2013-07-16 10:51:53 -0400 | [diff] [blame] | 48 | python -m tempest/stress/run_stress tempest/stress/etc/stress-tox-job.json -d 3600 |
Matthew Treinish | cee1177 | 2013-07-02 17:50:41 -0400 | [diff] [blame] | 49 | |
Sean Dague | b56052b | 2013-05-21 17:57:41 -0400 | [diff] [blame] | 50 | [testenv:venv] |
| 51 | commands = {posargs} |
Zhenguo Niu | d41413a | 2013-05-29 17:42:42 +0800 | [diff] [blame] | 52 | deps = -r{toxinidir}/requirements.txt |
| 53 | -r{toxinidir}/test-requirements.txt |
Sean Dague | b56052b | 2013-05-21 17:57:41 -0400 | [diff] [blame] | 54 | |
Jay Pipes | a6aa5f2 | 2012-07-24 19:40:29 -0400 | [diff] [blame] | 55 | [testenv:pep8] |
Monty Taylor | b2ca5ca | 2013-04-28 18:00:21 -0700 | [diff] [blame] | 56 | commands = flake8 |
Zhenguo Niu | d41413a | 2013-05-29 17:42:42 +0800 | [diff] [blame] | 57 | deps = -r{toxinidir}/requirements.txt |
| 58 | -r{toxinidir}/test-requirements.txt |
Monty Taylor | b2ca5ca | 2013-04-28 18:00:21 -0700 | [diff] [blame] | 59 | |
Giampaolo Lauria | 1b837ce | 2013-05-01 11:22:07 -0400 | [diff] [blame] | 60 | [hacking] |
Giampaolo Lauria | d50c27d | 2013-05-23 15:23:12 -0400 | [diff] [blame] | 61 | local-check-factory = tempest.hacking.checks.factory |
Giampaolo Lauria | 1b837ce | 2013-05-01 11:22:07 -0400 | [diff] [blame] | 62 | |
Monty Taylor | b2ca5ca | 2013-04-28 18:00:21 -0700 | [diff] [blame] | 63 | [flake8] |
Joe Gordon | dca03dd | 2013-07-18 14:10:19 -0700 | [diff] [blame] | 64 | # 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 Taylor | b2ca5ca | 2013-04-28 18:00:21 -0700 | [diff] [blame] | 65 | ignore = E125,H302,H404 |
| 66 | show-source = True |
| 67 | exclude = .git,.venv,.tox,dist,doc,openstack,*egg |