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 | 87af1bb | 2013-06-17 15:29:10 -0400 | [diff] [blame] | 14 | python setup.py testr --slowest |
| 15 | |
Giampaolo Lauria | 7a3e004 | 2013-06-07 14:59:19 -0400 | [diff] [blame] | 16 | |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 17 | [testenv:full] |
| 18 | sitepackages = True |
| 19 | setenv = 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 |
| 26 | commands = |
Sean Dague | 1937d09 | 2013-05-17 16:36:38 -0400 | [diff] [blame] | 27 | nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit --xunit-file=nosetests-full.xml -sv tempest/api tempest/scenario tempest/thirdparty tempest/cli |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 28 | |
Matthew Treinish | 83d2ec4 | 2013-07-30 16:37:32 -0400 | [diff] [blame^] | 29 | [testenv:testr-serial] |
| 30 | sitepackages = True |
| 31 | setenv = VIRTUAL_ENV={envdir} |
| 32 | commands = |
| 33 | sh tools/pretty_tox_serial.sh '{posargs} tempest.api tempest.scenario tempest.thirdparty tempest.cli' |
| 34 | |
Matthew Treinish | 87af1bb | 2013-06-17 15:29:10 -0400 | [diff] [blame] | 35 | [testenv:testr-full] |
| 36 | sitepackages = True |
| 37 | setenv = VIRTUAL_ENV={envdir} |
| 38 | commands = |
Matthew Treinish | e2955c0 | 2013-07-26 11:38:31 -0400 | [diff] [blame] | 39 | sh tools/pretty_tox.sh 'tempest.api tempest.scenario tempest.thirdparty tempest.cli {posargs}' |
Matthew Treinish | 87af1bb | 2013-06-17 15:29:10 -0400 | [diff] [blame] | 40 | |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 41 | [testenv:smoke] |
| 42 | sitepackages = True |
| 43 | setenv = 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 |
| 50 | commands = |
| 51 | nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit -sv --attr=type=smoke --xunit-file=nosetests-smoke.xml tempest |
| 52 | |
Matthew Treinish | d15705b | 2012-10-16 14:04:48 -0400 | [diff] [blame] | 53 | [testenv:coverage] |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 54 | sitepackages = True |
| 55 | setenv = 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 |
| 62 | commands = |
| 63 | python -m tools/tempest_coverage -c start --combine |
Sean Dague | 1937d09 | 2013-05-17 16:36:38 -0400 | [diff] [blame] | 64 | nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit --xunit-file=nosetests-full.xml -sv tempest/api tempest/scenario tempest/thirdparty tempest/cli |
Matthew Treinish | 0400129 | 2013-06-19 16:39:50 -0400 | [diff] [blame] | 65 | python -m tools/tempest_coverage -c report --html {posargs} |
Matthew Treinish | d15705b | 2012-10-16 14:04:48 -0400 | [diff] [blame] | 66 | |
Matthew Treinish | cee1177 | 2013-07-02 17:50:41 -0400 | [diff] [blame] | 67 | [testenv:stress] |
| 68 | sitepackages = True |
| 69 | setenv = VIRTUAL_ENV={envdir} |
| 70 | commands = |
Matthew Treinish | 7bd1cf2 | 2013-07-16 10:51:53 -0400 | [diff] [blame] | 71 | 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] | 72 | |
Sean Dague | b56052b | 2013-05-21 17:57:41 -0400 | [diff] [blame] | 73 | [testenv:venv] |
| 74 | commands = {posargs} |
Zhenguo Niu | d41413a | 2013-05-29 17:42:42 +0800 | [diff] [blame] | 75 | deps = -r{toxinidir}/requirements.txt |
| 76 | -r{toxinidir}/test-requirements.txt |
Sean Dague | b56052b | 2013-05-21 17:57:41 -0400 | [diff] [blame] | 77 | |
Jay Pipes | a6aa5f2 | 2012-07-24 19:40:29 -0400 | [diff] [blame] | 78 | [testenv:pep8] |
Monty Taylor | b2ca5ca | 2013-04-28 18:00:21 -0700 | [diff] [blame] | 79 | commands = flake8 |
Zhenguo Niu | d41413a | 2013-05-29 17:42:42 +0800 | [diff] [blame] | 80 | deps = -r{toxinidir}/requirements.txt |
| 81 | -r{toxinidir}/test-requirements.txt |
Monty Taylor | b2ca5ca | 2013-04-28 18:00:21 -0700 | [diff] [blame] | 82 | |
Giampaolo Lauria | 1b837ce | 2013-05-01 11:22:07 -0400 | [diff] [blame] | 83 | [hacking] |
Giampaolo Lauria | d50c27d | 2013-05-23 15:23:12 -0400 | [diff] [blame] | 84 | local-check-factory = tempest.hacking.checks.factory |
Giampaolo Lauria | 1b837ce | 2013-05-01 11:22:07 -0400 | [diff] [blame] | 85 | |
Monty Taylor | b2ca5ca | 2013-04-28 18:00:21 -0700 | [diff] [blame] | 86 | [flake8] |
Joe Gordon | dca03dd | 2013-07-18 14:10:19 -0700 | [diff] [blame] | 87 | # 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] | 88 | ignore = E125,H302,H404 |
| 89 | show-source = True |
| 90 | exclude = .git,.venv,.tox,dist,doc,openstack,*egg |