Jay Pipes | a6aa5f2 | 2012-07-24 19:40:29 -0400 | [diff] [blame] | 1 | [tox] |
Sean Dague | 5420d2d | 2014-06-25 18:12:13 -0400 | [diff] [blame] | 2 | envlist = pep8,py27 |
Matthew Treinish | 7228e11 | 2013-10-03 14:58:54 +0000 | [diff] [blame] | 3 | minversion = 1.6 |
| 4 | skipsdist = True |
Jay Pipes | a6aa5f2 | 2012-07-24 19:40:29 -0400 | [diff] [blame] | 5 | |
| 6 | [testenv] |
| 7 | setenv = VIRTUAL_ENV={envdir} |
Matthew Treinish | 87f772c | 2013-12-16 20:07:42 +0000 | [diff] [blame] | 8 | OS_TEST_PATH=./tempest/test_discover |
Matthew Treinish | 7228e11 | 2013-10-03 14:58:54 +0000 | [diff] [blame] | 9 | usedevelop = True |
Sean Dague | a646d17 | 2014-02-20 18:50:41 -0500 | [diff] [blame] | 10 | install_command = pip install -U {opts} {packages} |
Joe Gordon | fdd0663 | 2014-09-24 17:35:02 -0700 | [diff] [blame] | 11 | whitelist_externals = bash |
| 12 | |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 13 | |
Matthew Treinish | 12fdf4b | 2013-10-03 15:20:09 +0000 | [diff] [blame] | 14 | [testenv:py26] |
Matthew Treinish | bf47061 | 2013-12-13 15:46:44 +0000 | [diff] [blame] | 15 | setenv = OS_TEST_PATH=./tempest/tests |
Matthew Treinish | 12fdf4b | 2013-10-03 15:20:09 +0000 | [diff] [blame] | 16 | commands = python setup.py test --slowest --testr-arg='tempest\.tests {posargs}' |
| 17 | |
| 18 | [testenv:py33] |
Matthew Treinish | bf47061 | 2013-12-13 15:46:44 +0000 | [diff] [blame] | 19 | setenv = OS_TEST_PATH=./tempest/tests |
Matthew Treinish | 12fdf4b | 2013-10-03 15:20:09 +0000 | [diff] [blame] | 20 | commands = python setup.py test --slowest --testr-arg='tempest\.tests {posargs}' |
| 21 | |
Jeremy Stanley | dd2e07a | 2014-09-03 19:40:14 +0000 | [diff] [blame] | 22 | [testenv:py34] |
| 23 | setenv = OS_TEST_PATH=./tempest/tests |
| 24 | PYTHONHASHSEED=0 |
| 25 | commands = python setup.py test --slowest --testr-arg='tempest\.tests {posargs}' |
| 26 | |
Matthew Treinish | 12fdf4b | 2013-10-03 15:20:09 +0000 | [diff] [blame] | 27 | [testenv:py27] |
Matthew Treinish | bf47061 | 2013-12-13 15:46:44 +0000 | [diff] [blame] | 28 | setenv = OS_TEST_PATH=./tempest/tests |
Matthew Treinish | 12fdf4b | 2013-10-03 15:20:09 +0000 | [diff] [blame] | 29 | commands = python setup.py test --slowest --testr-arg='tempest\.tests {posargs}' |
| 30 | |
Matthew Treinish | b2f5cad | 2014-01-07 21:54:55 +0000 | [diff] [blame] | 31 | [testenv:cover] |
| 32 | setenv = OS_TEST_PATH=./tempest/tests |
| 33 | commands = python setup.py testr --coverage --testr-arg='tempest\.tests {posargs}' |
Matthew Treinish | 3a48181 | 2014-08-26 19:08:43 -0400 | [diff] [blame] | 34 | deps = -r{toxinidir}/requirements.txt |
| 35 | -r{toxinidir}/test-requirements.txt |
Matthew Treinish | b2f5cad | 2014-01-07 21:54:55 +0000 | [diff] [blame] | 36 | |
Giampaolo Lauria | 7a3e004 | 2013-06-07 14:59:19 -0400 | [diff] [blame] | 37 | [testenv:all] |
Sean Dague | a646d17 | 2014-02-20 18:50:41 -0500 | [diff] [blame] | 38 | sitepackages = True |
Giampaolo Lauria | 7a3e004 | 2013-06-07 14:59:19 -0400 | [diff] [blame] | 39 | commands = |
Attila Fazekas | 5739ac1 | 2014-02-20 07:09:07 +0100 | [diff] [blame] | 40 | bash tools/pretty_tox.sh '{posargs}' |
Matthew Treinish | 87af1bb | 2013-06-17 15:29:10 -0400 | [diff] [blame] | 41 | |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 42 | [testenv:full] |
Sean Dague | a646d17 | 2014-02-20 18:50:41 -0500 | [diff] [blame] | 43 | sitepackages = True |
Matthew Treinish | 59eb0b2 | 2013-08-07 15:48:21 -0400 | [diff] [blame] | 44 | # The regex below is used to select which tests to run and exclude the slow tag: |
| 45 | # See the testrepostiory bug: https://bugs.launchpad.net/testrepository/+bug/1208610 |
Matthew Treinish | 83d2ec4 | 2013-07-30 16:37:32 -0400 | [diff] [blame] | 46 | commands = |
Matthew Treinish | 1ee4398 | 2013-12-06 21:08:31 +0000 | [diff] [blame] | 47 | bash tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli)) {posargs}' |
Matthew Treinish | 83d2ec4 | 2013-07-30 16:37:32 -0400 | [diff] [blame] | 48 | |
Matthew Treinish | 99288cd | 2014-02-10 09:21:51 -0500 | [diff] [blame] | 49 | [testenv:full-serial] |
| 50 | # The regex below is used to select which tests to run and exclude the slow tag: |
| 51 | # See the testrepostiory bug: https://bugs.launchpad.net/testrepository/+bug/1208610 |
| 52 | commands = |
| 53 | bash tools/pretty_tox_serial.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli)) {posargs}' |
| 54 | |
Matthew Treinish | 87af1bb | 2013-06-17 15:29:10 -0400 | [diff] [blame] | 55 | [testenv:testr-full] |
Sean Dague | a646d17 | 2014-02-20 18:50:41 -0500 | [diff] [blame] | 56 | sitepackages = True |
Matthew Treinish | 87af1bb | 2013-06-17 15:29:10 -0400 | [diff] [blame] | 57 | commands = |
Matthew Treinish | 1ee4398 | 2013-12-06 21:08:31 +0000 | [diff] [blame] | 58 | bash tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli)) {posargs}' |
Matthew Treinish | 87af1bb | 2013-06-17 15:29:10 -0400 | [diff] [blame] | 59 | |
David Kranz | c5d52e9 | 2013-08-23 11:47:36 -0400 | [diff] [blame] | 60 | [testenv:heat-slow] |
Sean Dague | a646d17 | 2014-02-20 18:50:41 -0500 | [diff] [blame] | 61 | sitepackages = True |
Matthew Treinish | 7228e11 | 2013-10-03 14:58:54 +0000 | [diff] [blame] | 62 | setenv = OS_TEST_TIMEOUT=1200 |
David Kranz | c5d52e9 | 2013-08-23 11:47:36 -0400 | [diff] [blame] | 63 | # The regex below is used to select heat api/scenario tests tagged as slow. |
| 64 | commands = |
Matthew Treinish | 2009590 | 2014-04-03 14:06:32 -0400 | [diff] [blame] | 65 | bash tools/pretty_tox.sh '(?=.*\[.*\bslow\b.*\])(^tempest\.(api|scenario)\.orchestration) {posargs}' |
David Kranz | c5d52e9 | 2013-08-23 11:47:36 -0400 | [diff] [blame] | 66 | |
Joe Gordon | 4002815 | 2013-08-26 17:53:29 -0400 | [diff] [blame] | 67 | [testenv:large-ops] |
Sean Dague | a646d17 | 2014-02-20 18:50:41 -0500 | [diff] [blame] | 68 | sitepackages = True |
Joe Gordon | 4002815 | 2013-08-26 17:53:29 -0400 | [diff] [blame] | 69 | commands = |
| 70 | python setup.py testr --slowest --testr-args='tempest.scenario.test_large_ops {posargs}' |
| 71 | |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 72 | [testenv:smoke] |
Sean Dague | a646d17 | 2014-02-20 18:50:41 -0500 | [diff] [blame] | 73 | sitepackages = True |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 74 | commands = |
Matthew Treinish | 1ee4398 | 2013-12-06 21:08:31 +0000 | [diff] [blame] | 75 | bash tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])((smoke)|(^tempest\.scenario)) {posargs}' |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 76 | |
Joe Gordon | d279629 | 2013-11-14 12:55:55 -0800 | [diff] [blame] | 77 | [testenv:smoke-serial] |
Sean Dague | a646d17 | 2014-02-20 18:50:41 -0500 | [diff] [blame] | 78 | sitepackages = True |
Joe Gordon | d279629 | 2013-11-14 12:55:55 -0800 | [diff] [blame] | 79 | # This is still serial because neutron doesn't work with parallel. See: |
| 80 | # https://bugs.launchpad.net/tempest/+bug/1216076 so the neutron smoke |
| 81 | # job would fail if we moved it to parallel. |
| 82 | commands = |
Matthew Treinish | 1ee4398 | 2013-12-06 21:08:31 +0000 | [diff] [blame] | 83 | bash tools/pretty_tox_serial.sh '(?!.*\[.*\bslow\b.*\])((smoke)|(^tempest\.scenario)) {posargs}' |
Joe Gordon | d279629 | 2013-11-14 12:55:55 -0800 | [diff] [blame] | 84 | |
Matthew Treinish | cee1177 | 2013-07-02 17:50:41 -0400 | [diff] [blame] | 85 | [testenv:stress] |
Sean Dague | a646d17 | 2014-02-20 18:50:41 -0500 | [diff] [blame] | 86 | sitepackages = True |
Matthew Treinish | cee1177 | 2013-07-02 17:50:41 -0400 | [diff] [blame] | 87 | commands = |
Matthew Treinish | 55e29b4 | 2014-05-07 01:04:17 -0400 | [diff] [blame] | 88 | run-tempest-stress -a -d 3600 -S |
Matthew Treinish | cee1177 | 2013-07-02 17:50:41 -0400 | [diff] [blame] | 89 | |
Sean Dague | b56052b | 2013-05-21 17:57:41 -0400 | [diff] [blame] | 90 | [testenv:venv] |
| 91 | commands = {posargs} |
Zhenguo Niu | d41413a | 2013-05-29 17:42:42 +0800 | [diff] [blame] | 92 | deps = -r{toxinidir}/requirements.txt |
| 93 | -r{toxinidir}/test-requirements.txt |
Sean Dague | b56052b | 2013-05-21 17:57:41 -0400 | [diff] [blame] | 94 | |
Matthew Treinish | 8bd013e | 2014-06-18 21:58:32 -0400 | [diff] [blame] | 95 | [testenv:docs] |
| 96 | commands = python setup.py build_sphinx {posargs} |
| 97 | deps = -r{toxinidir}/requirements.txt |
| 98 | -r{toxinidir}/test-requirements.txt |
| 99 | |
Jay Pipes | a6aa5f2 | 2012-07-24 19:40:29 -0400 | [diff] [blame] | 100 | [testenv:pep8] |
Adam Gandelman | a10f768 | 2014-08-25 15:47:08 -0700 | [diff] [blame] | 101 | setenv = PYTHONHASHSEED=0 |
Matthew Treinish | 3d46811 | 2013-10-24 21:49:14 +0000 | [diff] [blame] | 102 | commands = |
| 103 | flake8 {posargs} |
| 104 | {toxinidir}/tools/config/check_uptodate.sh |
| 105 | |
Zhenguo Niu | d41413a | 2013-05-29 17:42:42 +0800 | [diff] [blame] | 106 | deps = -r{toxinidir}/requirements.txt |
| 107 | -r{toxinidir}/test-requirements.txt |
Monty Taylor | b2ca5ca | 2013-04-28 18:00:21 -0700 | [diff] [blame] | 108 | |
Giampaolo Lauria | 1b837ce | 2013-05-01 11:22:07 -0400 | [diff] [blame] | 109 | [hacking] |
Giampaolo Lauria | d50c27d | 2013-05-23 15:23:12 -0400 | [diff] [blame] | 110 | local-check-factory = tempest.hacking.checks.factory |
Matthew Treinish | 2b6db0c | 2014-05-17 10:42:36 -0400 | [diff] [blame] | 111 | import_exceptions = tempest.services |
Giampaolo Lauria | 1b837ce | 2013-05-01 11:22:07 -0400 | [diff] [blame] | 112 | |
Monty Taylor | b2ca5ca | 2013-04-28 18:00:21 -0700 | [diff] [blame] | 113 | [flake8] |
Joe Gordon | dca03dd | 2013-07-18 14:10:19 -0700 | [diff] [blame] | 114 | # 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/ |
Matthew Treinish | 5716058 | 2014-06-09 17:13:48 -0400 | [diff] [blame] | 115 | # H402 skipped because some docstrings aren't sentences |
Matthew Treinish | 96e9e88 | 2014-06-09 18:37:19 -0400 | [diff] [blame] | 116 | # E123 skipped because it is ignored by default in the default pep8 |
Matthew Treinish | 1d14c54 | 2014-06-17 20:25:40 -0400 | [diff] [blame] | 117 | # E129 skipped because it is too limiting when combined with other rules |
Matthew Treinish | 75d540d | 2014-08-15 14:19:03 -0400 | [diff] [blame] | 118 | # H305 skipped because it is inconsistent between python versions |
Matthew Treinish | 1d14c54 | 2014-06-17 20:25:40 -0400 | [diff] [blame] | 119 | # Skipped because of new hacking 0.9: H405,H904 |
Matthew Treinish | 75d540d | 2014-08-15 14:19:03 -0400 | [diff] [blame] | 120 | ignore = E125,H402,E123,E129,H404,H405,H904,H305 |
Monty Taylor | b2ca5ca | 2013-04-28 18:00:21 -0700 | [diff] [blame] | 121 | show-source = True |
| 122 | exclude = .git,.venv,.tox,dist,doc,openstack,*egg |