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