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