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 = |
Matthew Treinish | 32d3570 | 2013-08-13 11:59:06 -0400 | [diff] [blame^] | 22 | sh tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli|tests)) {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 = |
Matthew Treinish | 32d3570 | 2013-08-13 11:59:06 -0400 | [diff] [blame^] | 28 | sh tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli|tests)) {posargs}' |
Matthew Treinish | 87af1bb | 2013-06-17 15:29:10 -0400 | [diff] [blame] | 29 | |
David Kranz | c5d52e9 | 2013-08-23 11:47:36 -0400 | [diff] [blame] | 30 | [testenv:heat-slow] |
| 31 | sitepackages = True |
| 32 | setenv = VIRTUAL_ENV={envdir} |
| 33 | # The regex below is used to select heat api/scenario tests tagged as slow. |
| 34 | commands = |
| 35 | sh tools/pretty_tox_serial.sh '(?=.*\[.*\bslow\b.*\])(^tempest\.(api|scenario)\.orchestration) {posargs}' |
| 36 | |
Matthew Treinish | f0e4747 | 2013-08-15 16:54:45 -0400 | [diff] [blame] | 37 | [testenv:py26-full] |
| 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 = |
Matthew Treinish | 32d3570 | 2013-08-13 11:59:06 -0400 | [diff] [blame^] | 47 | nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit -sv --xunit-file=nosetests-full.xml tempest/api tempest/scenario tempest/thirdparty tempest/cli tempest/tests {posargs} |
Matthew Treinish | f0e4747 | 2013-08-15 16:54:45 -0400 | [diff] [blame] | 48 | |
| 49 | [testenv:py26-smoke] |
| 50 | setenv = VIRTUAL_ENV={envdir} |
| 51 | NOSE_WITH_OPENSTACK=1 |
| 52 | NOSE_OPENSTACK_COLOR=1 |
| 53 | NOSE_OPENSTACK_RED=15 |
| 54 | NOSE_OPENSTACK_YELLOW=3 |
| 55 | NOSE_OPENSTACK_SHOW_ELAPSED=1 |
| 56 | NOSE_OPENSTACK_STDOUT=1 |
| 57 | commands = |
| 58 | nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit -sv --attr=type=smoke --xunit-file=nosetests-smoke.xml tempest {posargs} |
| 59 | |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 60 | [testenv:smoke] |
| 61 | sitepackages = True |
| 62 | setenv = VIRTUAL_ENV={envdir} |
Matthew Treinish | 26058bc | 2013-08-13 17:50:59 -0400 | [diff] [blame] | 63 | # This is still serial because neutron doesn't work with parallel. See: |
| 64 | # https://bugs.launchpad.net/tempest/+bug/1216076 so the neutron smoke |
| 65 | # job would fail if we moved it to parallel. |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 66 | commands = |
Matthew Treinish | 59eb0b2 | 2013-08-07 15:48:21 -0400 | [diff] [blame] | 67 | sh tools/pretty_tox_serial.sh 'smoke {posargs}' |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 68 | |
Matthew Treinish | d15705b | 2012-10-16 14:04:48 -0400 | [diff] [blame] | 69 | [testenv:coverage] |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 70 | sitepackages = True |
| 71 | setenv = VIRTUAL_ENV={envdir} |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 72 | commands = |
| 73 | python -m tools/tempest_coverage -c start --combine |
Matthew Treinish | 32d3570 | 2013-08-13 11:59:06 -0400 | [diff] [blame^] | 74 | sh tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli|tests))' |
Matthew Treinish | 0400129 | 2013-06-19 16:39:50 -0400 | [diff] [blame] | 75 | python -m tools/tempest_coverage -c report --html {posargs} |
Matthew Treinish | d15705b | 2012-10-16 14:04:48 -0400 | [diff] [blame] | 76 | |
Matthew Treinish | cee1177 | 2013-07-02 17:50:41 -0400 | [diff] [blame] | 77 | [testenv:stress] |
| 78 | sitepackages = True |
| 79 | setenv = VIRTUAL_ENV={envdir} |
| 80 | commands = |
Matthew Treinish | 7bd1cf2 | 2013-07-16 10:51:53 -0400 | [diff] [blame] | 81 | 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] | 82 | |
Sean Dague | b56052b | 2013-05-21 17:57:41 -0400 | [diff] [blame] | 83 | [testenv:venv] |
| 84 | commands = {posargs} |
Zhenguo Niu | d41413a | 2013-05-29 17:42:42 +0800 | [diff] [blame] | 85 | deps = -r{toxinidir}/requirements.txt |
| 86 | -r{toxinidir}/test-requirements.txt |
Sean Dague | b56052b | 2013-05-21 17:57:41 -0400 | [diff] [blame] | 87 | |
Jay Pipes | a6aa5f2 | 2012-07-24 19:40:29 -0400 | [diff] [blame] | 88 | [testenv:pep8] |
Monty Taylor | b2ca5ca | 2013-04-28 18:00:21 -0700 | [diff] [blame] | 89 | commands = flake8 |
Zhenguo Niu | d41413a | 2013-05-29 17:42:42 +0800 | [diff] [blame] | 90 | deps = -r{toxinidir}/requirements.txt |
| 91 | -r{toxinidir}/test-requirements.txt |
Monty Taylor | b2ca5ca | 2013-04-28 18:00:21 -0700 | [diff] [blame] | 92 | |
Giampaolo Lauria | 1b837ce | 2013-05-01 11:22:07 -0400 | [diff] [blame] | 93 | [hacking] |
Giampaolo Lauria | d50c27d | 2013-05-23 15:23:12 -0400 | [diff] [blame] | 94 | local-check-factory = tempest.hacking.checks.factory |
Giampaolo Lauria | 1b837ce | 2013-05-01 11:22:07 -0400 | [diff] [blame] | 95 | |
Monty Taylor | b2ca5ca | 2013-04-28 18:00:21 -0700 | [diff] [blame] | 96 | [flake8] |
Joe Gordon | dca03dd | 2013-07-18 14:10:19 -0700 | [diff] [blame] | 97 | # 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] | 98 | ignore = E125,H302,H404 |
| 99 | show-source = True |
| 100 | exclude = .git,.venv,.tox,dist,doc,openstack,*egg |