Jay Pipes | a6aa5f2 | 2012-07-24 19:40:29 -0400 | [diff] [blame] | 1 | [tox] |
Manik Bindlish | aa6f7df | 2019-03-08 06:49:05 +0000 | [diff] [blame] | 2 | envlist = pep8,py36,py37,py27,pip-check-reqs |
Ghanshyam | 3a59e1e | 2016-01-14 17:15:29 +0900 | [diff] [blame] | 3 | minversion = 2.3.1 |
Matthew Treinish | 7228e11 | 2013-10-03 14:58:54 +0000 | [diff] [blame] | 4 | skipsdist = True |
Jay Pipes | a6aa5f2 | 2012-07-24 19:40:29 -0400 | [diff] [blame] | 5 | |
Matthew Treinish | 5b7626a | 2014-09-23 17:39:38 -0400 | [diff] [blame] | 6 | [tempestenv] |
Joe Gordon | 9f1612e | 2015-01-28 11:23:43 -0800 | [diff] [blame] | 7 | sitepackages = False |
Masayuki Igawa | d81d3ce | 2016-04-20 15:00:54 +0900 | [diff] [blame] | 8 | setenv = |
| 9 | VIRTUAL_ENV={envdir} |
| 10 | OS_TEST_PATH=./tempest/test_discover |
| 11 | deps = |
caoyuan | 349ba75 | 2019-04-23 19:40:06 +0800 | [diff] [blame] | 12 | -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} |
Masayuki Igawa | d81d3ce | 2016-04-20 15:00:54 +0900 | [diff] [blame] | 13 | -r{toxinidir}/requirements.txt |
Matthew Treinish | 5b7626a | 2014-09-23 17:39:38 -0400 | [diff] [blame] | 14 | |
| 15 | [testenv] |
Masayuki Igawa | d81d3ce | 2016-04-20 15:00:54 +0900 | [diff] [blame] | 16 | setenv = |
| 17 | VIRTUAL_ENV={envdir} |
Andrea Frittoli | 8f018cb | 2017-08-11 14:36:18 +0100 | [diff] [blame] | 18 | OS_LOG_CAPTURE=1 |
Matthew Treinish | 5cc9289 | 2018-02-22 15:53:47 -0500 | [diff] [blame] | 19 | OS_STDOUT_CAPTURE=1 |
| 20 | OS_STDERR_CAPTURE=1 |
| 21 | OS_TEST_TIMEOUT=160 |
Stephen Finucane | a6353c4 | 2018-07-06 14:00:36 +0100 | [diff] [blame] | 22 | PYTHONWARNINGS=default::DeprecationWarning,ignore::DeprecationWarning:distutils,ignore::DeprecationWarning:site |
Chris Dent | 9b4c50c | 2018-10-03 10:24:40 +0100 | [diff] [blame] | 23 | passenv = OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_TEST_TIMEOUT OS_TEST_LOCK_PATH TEMPEST_CONFIG TEMPEST_CONFIG_DIR http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY ZUUL_CACHE_DIR REQUIREMENTS_PIP_LOCATION GENERATE_TEMPEST_PLUGIN_LIST GABBI_TEMPEST_PATH |
Matthew Treinish | 7228e11 | 2013-10-03 14:58:54 +0000 | [diff] [blame] | 24 | usedevelop = True |
Andreas Jaeger | 880d943 | 2017-12-01 07:38:54 +0100 | [diff] [blame] | 25 | install_command = pip install {opts} {packages} |
Matthew Treinish | 5b7626a | 2014-09-23 17:39:38 -0400 | [diff] [blame] | 26 | whitelist_externals = * |
Masayuki Igawa | d81d3ce | 2016-04-20 15:00:54 +0900 | [diff] [blame] | 27 | deps = |
caoyuan | 349ba75 | 2019-04-23 19:40:06 +0800 | [diff] [blame] | 28 | -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} |
Masayuki Igawa | d81d3ce | 2016-04-20 15:00:54 +0900 | [diff] [blame] | 29 | -r{toxinidir}/requirements.txt |
| 30 | -r{toxinidir}/test-requirements.txt |
Sean Dague | c7b4d88 | 2014-11-25 08:18:23 -0500 | [diff] [blame] | 31 | commands = |
Masayuki Igawa | d81d3ce | 2016-04-20 15:00:54 +0900 | [diff] [blame] | 32 | find . -type f -name "*.pyc" -delete |
Masayuki Igawa | d0b8ebd | 2017-09-14 14:51:25 -0600 | [diff] [blame] | 33 | stestr --test-path ./tempest/tests run {posargs} |
Matthew Treinish | 12fdf4b | 2013-10-03 15:20:09 +0000 | [diff] [blame] | 34 | |
Jon Grimm | 270bd7f | 2014-08-05 18:11:29 +0000 | [diff] [blame] | 35 | [testenv:genconfig] |
Matthew Treinish | bdef1c7 | 2016-06-21 18:06:49 -0400 | [diff] [blame] | 36 | commands = oslo-config-generator --config-file tempest/cmd/config-generator.tempest.conf |
Jon Grimm | 270bd7f | 2014-08-05 18:11:29 +0000 | [diff] [blame] | 37 | |
Matthew Treinish | b2f5cad | 2014-01-07 21:54:55 +0000 | [diff] [blame] | 38 | [testenv:cover] |
Matthew Treinish | 069d828 | 2017-11-28 19:19:27 -0500 | [diff] [blame] | 39 | setenv = |
| 40 | {[testenv]setenv} |
| 41 | PYTHON=coverage run --source tempest --parallel-mode |
| 42 | commands = |
| 43 | coverage erase |
| 44 | find . -type f -name "*.pyc" -delete |
| 45 | stestr --test-path ./tempest/tests run {posargs} |
| 46 | coverage combine |
| 47 | coverage html -d cover |
| 48 | coverage xml -o cover/coverage.xml |
| 49 | coverage report |
Matthew Treinish | b2f5cad | 2014-01-07 21:54:55 +0000 | [diff] [blame] | 50 | |
Manik Bindlish | 8a7aaa5 | 2018-11-30 10:22:30 +0000 | [diff] [blame] | 51 | [testenv:debug] |
| 52 | basepython = python3 |
| 53 | commands = oslo_debug_helper -t tempest/tests {posargs} |
| 54 | |
Giampaolo Lauria | 7a3e004 | 2013-06-07 14:59:19 -0400 | [diff] [blame] | 55 | [testenv:all] |
Matthew Treinish | 0e25a90 | 2016-04-29 16:38:51 -0400 | [diff] [blame] | 56 | envdir = .tox/tempest |
Matthew Treinish | 5b7626a | 2014-09-23 17:39:38 -0400 | [diff] [blame] | 57 | sitepackages = {[tempestenv]sitepackages} |
David Kranz | f9695d2 | 2014-10-27 11:43:52 -0400 | [diff] [blame] | 58 | # 'all' includes slow tests |
Masayuki Igawa | d81d3ce | 2016-04-20 15:00:54 +0900 | [diff] [blame] | 59 | setenv = |
| 60 | {[tempestenv]setenv} |
| 61 | OS_TEST_TIMEOUT={env:OS_TEST_TIMEOUT:1200} |
Matthew Treinish | 5b7626a | 2014-09-23 17:39:38 -0400 | [diff] [blame] | 62 | deps = {[tempestenv]deps} |
Giampaolo Lauria | 7a3e004 | 2013-06-07 14:59:19 -0400 | [diff] [blame] | 63 | commands = |
Masayuki Igawa | d81d3ce | 2016-04-20 15:00:54 +0900 | [diff] [blame] | 64 | find . -type f -name "*.pyc" -delete |
Masayuki Igawa | fe0de68 | 2019-05-21 17:04:28 +0900 | [diff] [blame] | 65 | tempest run --regex {posargs:''} |
Matthew Treinish | 87af1bb | 2013-06-17 15:29:10 -0400 | [diff] [blame] | 66 | |
Marc Koderer | c2f9b3a | 2015-07-27 15:19:08 +0200 | [diff] [blame] | 67 | [testenv:all-plugin] |
Andrea Frittoli | 35d12ca | 2018-02-13 15:42:25 +0000 | [diff] [blame] | 68 | # DEPRECATED |
| 69 | # NOTE(andreaf) The all-plugin tox env uses sitepackages |
| 70 | # so that plugins installed outsite of Tempest virtual environment |
| 71 | # can be discovered. After the implementation during the Queens |
| 72 | # release cycle of the goal of moving Tempest plugins in dedicated |
| 73 | # git repos, this environment should not be used anymore. "all" |
| 74 | # should be used instead with the appropriate regex filtering. |
| 75 | sitepackages = True |
| 76 | # 'all' includes slow tests |
| 77 | setenv = |
| 78 | {[tempestenv]setenv} |
| 79 | OS_TEST_TIMEOUT={env:OS_TEST_TIMEOUT:1200} |
| 80 | deps = {[tempestenv]deps} |
| 81 | commands = |
| 82 | echo "WARNING: The all-plugin env is deprecated and will be removed" |
| 83 | echo "WARNING Please use the 'all' environment for Tempest plugins." |
| 84 | find . -type f -name "*.pyc" -delete |
Masayuki Igawa | fe0de68 | 2019-05-21 17:04:28 +0900 | [diff] [blame] | 85 | tempest run --regex {posargs:''} |
Andrea Frittoli | 35d12ca | 2018-02-13 15:42:25 +0000 | [diff] [blame] | 86 | |
| 87 | [testenv:all-site-packages] |
Marc Koderer | c2f9b3a | 2015-07-27 15:19:08 +0200 | [diff] [blame] | 88 | sitepackages = True |
| 89 | # 'all' includes slow tests |
Masayuki Igawa | d81d3ce | 2016-04-20 15:00:54 +0900 | [diff] [blame] | 90 | setenv = |
| 91 | {[tempestenv]setenv} |
| 92 | OS_TEST_TIMEOUT={env:OS_TEST_TIMEOUT:1200} |
Marc Koderer | c2f9b3a | 2015-07-27 15:19:08 +0200 | [diff] [blame] | 93 | deps = {[tempestenv]deps} |
| 94 | commands = |
Masayuki Igawa | d81d3ce | 2016-04-20 15:00:54 +0900 | [diff] [blame] | 95 | find . -type f -name "*.pyc" -delete |
Masayuki Igawa | fe0de68 | 2019-05-21 17:04:28 +0900 | [diff] [blame] | 96 | tempest run --regex {posargs:''} |
Marc Koderer | c2f9b3a | 2015-07-27 15:19:08 +0200 | [diff] [blame] | 97 | |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 98 | [testenv:full] |
Matthew Treinish | 0e25a90 | 2016-04-29 16:38:51 -0400 | [diff] [blame] | 99 | envdir = .tox/tempest |
Matthew Treinish | 5b7626a | 2014-09-23 17:39:38 -0400 | [diff] [blame] | 100 | sitepackages = {[tempestenv]sitepackages} |
| 101 | setenv = {[tempestenv]setenv} |
| 102 | deps = {[tempestenv]deps} |
Matthew Treinish | 59eb0b2 | 2013-08-07 15:48:21 -0400 | [diff] [blame] | 103 | # The regex below is used to select which tests to run and exclude the slow tag: |
Masayuki Igawa | 8352204 | 2015-12-01 16:51:34 +0900 | [diff] [blame] | 104 | # See the testrepository bug: https://bugs.launchpad.net/testrepository/+bug/1208610 |
Masayuki Igawa | ac0b171 | 2018-03-09 16:20:42 +0900 | [diff] [blame] | 105 | # FIXME: We can replace it with the `--black-regex` option to exclude tests now. |
Matthew Treinish | 83d2ec4 | 2013-07-30 16:37:32 -0400 | [diff] [blame] | 106 | commands = |
Masayuki Igawa | d81d3ce | 2016-04-20 15:00:54 +0900 | [diff] [blame] | 107 | find . -type f -name "*.pyc" -delete |
Sean Dague | 49505df | 2017-03-01 11:35:58 -0500 | [diff] [blame] | 108 | tempest run --regex '(?!.*\[.*\bslow\b.*\])(^tempest\.api)' {posargs} |
| 109 | tempest run --combine --serial --regex '(?!.*\[.*\bslow\b.*\])(^tempest\.scenario)' {posargs} |
Matthew Treinish | 83d2ec4 | 2013-07-30 16:37:32 -0400 | [diff] [blame] | 110 | |
Attila Fazekas | 3f219f5 | 2018-03-01 16:50:10 +0000 | [diff] [blame] | 111 | [testenv:full-parallel] |
| 112 | envdir = .tox/tempest |
| 113 | sitepackages = {[tempestenv]sitepackages} |
| 114 | setenv = {[tempestenv]setenv} |
| 115 | deps = {[tempestenv]deps} |
| 116 | # The regex below is used to select all tempest scenario and including the non slow api tests |
| 117 | commands = |
| 118 | find . -type f -name "*.pyc" -delete |
| 119 | tempest run --regex '(^tempest\.scenario.*)|(?!.*\[.*\bslow\b.*\])(^tempest\.api)' {posargs} |
| 120 | |
Ghanshyam | 5072a24 | 2019-07-03 14:40:53 +0000 | [diff] [blame] | 121 | [testenv:integrated-network] |
| 122 | envdir = .tox/tempest |
| 123 | sitepackages = {[tempestenv]sitepackages} |
| 124 | setenv = {[tempestenv]setenv} |
| 125 | deps = {[tempestenv]deps} |
| 126 | # The regex below is used to select which tests to run and exclude the slow tag and |
| 127 | # tests listed in blacklist file: |
| 128 | commands = |
| 129 | find . -type f -name "*.pyc" -delete |
| 130 | tempest run --regex '(?!.*\[.*\bslow\b.*\])(^tempest\.api)' --blacklist_file ./tools/tempest-integrated-gate-networking-blacklist.txt {posargs} |
| 131 | tempest run --combine --serial --regex '(?!.*\[.*\bslow\b.*\])(^tempest\.scenario)' --blacklist_file ./tools/tempest-integrated-gate-networking-blacklist.txt {posargs} |
| 132 | |
Ghanshyam Mann | a699445 | 2019-07-05 08:43:23 +0000 | [diff] [blame^] | 133 | [testenv:integrated-storage] |
| 134 | envdir = .tox/tempest |
| 135 | sitepackages = {[tempestenv]sitepackages} |
| 136 | setenv = {[tempestenv]setenv} |
| 137 | deps = {[tempestenv]deps} |
| 138 | # The regex below is used to select which tests to run and exclude the slow tag and |
| 139 | # tests listed in blacklist file: |
| 140 | commands = |
| 141 | find . -type f -name "*.pyc" -delete |
| 142 | tempest run --regex '(?!.*\[.*\bslow\b.*\])(^tempest\.api)' --blacklist_file ./tools/tempest-integrated-gate-storage-blacklist.txt {posargs} |
| 143 | tempest run --combine --serial --regex '(?!.*\[.*\bslow\b.*\])(^tempest\.scenario)' --blacklist_file ./tools/tempest-integrated-gate-storage-blacklist.txt {posargs} |
| 144 | |
Matthew Treinish | 99288cd | 2014-02-10 09:21:51 -0500 | [diff] [blame] | 145 | [testenv:full-serial] |
Matthew Treinish | 0e25a90 | 2016-04-29 16:38:51 -0400 | [diff] [blame] | 146 | envdir = .tox/tempest |
Matthew Treinish | 5b7626a | 2014-09-23 17:39:38 -0400 | [diff] [blame] | 147 | sitepackages = {[tempestenv]sitepackages} |
| 148 | setenv = {[tempestenv]setenv} |
| 149 | deps = {[tempestenv]deps} |
Matthew Treinish | 99288cd | 2014-02-10 09:21:51 -0500 | [diff] [blame] | 150 | # The regex below is used to select which tests to run and exclude the slow tag: |
Masayuki Igawa | 8352204 | 2015-12-01 16:51:34 +0900 | [diff] [blame] | 151 | # See the testrepository bug: https://bugs.launchpad.net/testrepository/+bug/1208610 |
Masayuki Igawa | ac0b171 | 2018-03-09 16:20:42 +0900 | [diff] [blame] | 152 | # FIXME: We can replace it with the `--black-regex` option to exclude tests now. |
Matthew Treinish | 99288cd | 2014-02-10 09:21:51 -0500 | [diff] [blame] | 153 | commands = |
Masayuki Igawa | d81d3ce | 2016-04-20 15:00:54 +0900 | [diff] [blame] | 154 | find . -type f -name "*.pyc" -delete |
Masayuki Igawa | 730f59b | 2016-09-21 11:47:32 +0200 | [diff] [blame] | 155 | tempest run --serial --regex '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario))' {posargs} |
Matthew Treinish | 99288cd | 2014-02-10 09:21:51 -0500 | [diff] [blame] | 156 | |
Andrea Frittoli | b838af9 | 2017-03-06 15:11:13 +0000 | [diff] [blame] | 157 | [testenv:scenario] |
| 158 | envdir = .tox/tempest |
| 159 | sitepackages = {[tempestenv]sitepackages} |
| 160 | setenv = {[tempestenv]setenv} |
| 161 | deps = {[tempestenv]deps} |
| 162 | # The regex below is used to select all scenario tests |
| 163 | commands = |
| 164 | find . -type f -name "*.pyc" -delete |
| 165 | tempest run --serial --regex '(^tempest\.scenario)' {posargs} |
| 166 | |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 167 | [testenv:smoke] |
Matthew Treinish | 0e25a90 | 2016-04-29 16:38:51 -0400 | [diff] [blame] | 168 | envdir = .tox/tempest |
Matthew Treinish | 5b7626a | 2014-09-23 17:39:38 -0400 | [diff] [blame] | 169 | sitepackages = {[tempestenv]sitepackages} |
| 170 | setenv = {[tempestenv]setenv} |
| 171 | deps = {[tempestenv]deps} |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 172 | commands = |
Masayuki Igawa | d81d3ce | 2016-04-20 15:00:54 +0900 | [diff] [blame] | 173 | find . -type f -name "*.pyc" -delete |
Matthew Treinish | 68c7871 | 2016-07-28 14:47:27 -0400 | [diff] [blame] | 174 | tempest run --regex '\[.*\bsmoke\b.*\]' {posargs} |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 175 | |
Joe Gordon | d279629 | 2013-11-14 12:55:55 -0800 | [diff] [blame] | 176 | [testenv:smoke-serial] |
Matthew Treinish | 0e25a90 | 2016-04-29 16:38:51 -0400 | [diff] [blame] | 177 | envdir = .tox/tempest |
Matthew Treinish | 5b7626a | 2014-09-23 17:39:38 -0400 | [diff] [blame] | 178 | sitepackages = {[tempestenv]sitepackages} |
| 179 | setenv = {[tempestenv]setenv} |
| 180 | deps = {[tempestenv]deps} |
Joe Gordon | d279629 | 2013-11-14 12:55:55 -0800 | [diff] [blame] | 181 | # This is still serial because neutron doesn't work with parallel. See: |
| 182 | # https://bugs.launchpad.net/tempest/+bug/1216076 so the neutron smoke |
| 183 | # job would fail if we moved it to parallel. |
| 184 | commands = |
Masayuki Igawa | d81d3ce | 2016-04-20 15:00:54 +0900 | [diff] [blame] | 185 | find . -type f -name "*.pyc" -delete |
Matthew Treinish | 68c7871 | 2016-07-28 14:47:27 -0400 | [diff] [blame] | 186 | tempest run --serial --regex '\[.*\bsmoke\b.*\]' {posargs} |
Joe Gordon | d279629 | 2013-11-14 12:55:55 -0800 | [diff] [blame] | 187 | |
ghanshyam | 10326c7 | 2018-08-01 08:53:00 +0000 | [diff] [blame] | 188 | [testenv:slow-serial] |
| 189 | envdir = .tox/tempest |
| 190 | sitepackages = {[tempestenv]sitepackages} |
| 191 | setenv = {[tempestenv]setenv} |
| 192 | deps = {[tempestenv]deps} |
| 193 | # The regex below is used to select the slow tagged tests to run serially: |
| 194 | commands = |
| 195 | find . -type f -name "*.pyc" -delete |
| 196 | tempest run --serial --regex '\[.*\bslow\b.*\]' {posargs} |
| 197 | |
Sean Dague | b56052b | 2013-05-21 17:57:41 -0400 | [diff] [blame] | 198 | [testenv:venv] |
Matt Riedemann | d5e9282 | 2018-01-25 11:25:57 -0500 | [diff] [blame] | 199 | deps = |
caoyuan | 349ba75 | 2019-04-23 19:40:06 +0800 | [diff] [blame] | 200 | -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} |
Matt Riedemann | d5e9282 | 2018-01-25 11:25:57 -0500 | [diff] [blame] | 201 | -r{toxinidir}/requirements.txt |
| 202 | -r{toxinidir}/doc/requirements.txt |
Sean Dague | b56052b | 2013-05-21 17:57:41 -0400 | [diff] [blame] | 203 | commands = {posargs} |
Sean Dague | b56052b | 2013-05-21 17:57:41 -0400 | [diff] [blame] | 204 | |
Matthew Treinish | 0e25a90 | 2016-04-29 16:38:51 -0400 | [diff] [blame] | 205 | [testenv:venv-tempest] |
| 206 | envdir = .tox/tempest |
| 207 | sitepackages = {[tempestenv]sitepackages} |
| 208 | setenv = {[tempestenv]setenv} |
| 209 | deps = {[tempestenv]deps} |
| 210 | commands = {posargs} |
| 211 | |
Matthew Treinish | 8bd013e | 2014-06-18 21:58:32 -0400 | [diff] [blame] | 212 | [testenv:docs] |
Doug Hellmann | 05f3dfe | 2018-09-18 15:04:51 -0400 | [diff] [blame] | 213 | basepython = python3 |
junboli | 173b11c | 2018-01-15 11:25:35 +0800 | [diff] [blame] | 214 | deps = |
caoyuan | 349ba75 | 2019-04-23 19:40:06 +0800 | [diff] [blame] | 215 | -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} |
junboli | 173b11c | 2018-01-15 11:25:35 +0800 | [diff] [blame] | 216 | -r{toxinidir}/requirements.txt |
| 217 | -r{toxinidir}/doc/requirements.txt |
Mathew Odden | b389faa | 2015-07-30 20:24:08 +0000 | [diff] [blame] | 218 | commands = |
junboli | 173b11c | 2018-01-15 11:25:35 +0800 | [diff] [blame] | 219 | rm -rf doc/build |
Ihar Hrachyshka | 8032b2e | 2017-11-27 14:16:59 -0800 | [diff] [blame] | 220 | sphinx-build -W -b html doc/source doc/build/html |
junboli | 173b11c | 2018-01-15 11:25:35 +0800 | [diff] [blame] | 221 | whitelist_externals = rm |
Matthew Treinish | 8bd013e | 2014-06-18 21:58:32 -0400 | [diff] [blame] | 222 | |
Jay Pipes | a6aa5f2 | 2012-07-24 19:40:29 -0400 | [diff] [blame] | 223 | [testenv:pep8] |
afazekas | 40fcb9b | 2019-03-08 11:25:11 +0100 | [diff] [blame] | 224 | deps = |
Attila Fazekas | c07edb5 | 2019-03-17 15:38:03 +0100 | [diff] [blame] | 225 | -r{toxinidir}/test-requirements.txt |
afazekas | 40fcb9b | 2019-03-08 11:25:11 +0100 | [diff] [blame] | 226 | autopep8 |
Doug Hellmann | 05f3dfe | 2018-09-18 15:04:51 -0400 | [diff] [blame] | 227 | basepython = python3 |
Matthew Treinish | 3d46811 | 2013-10-24 21:49:14 +0000 | [diff] [blame] | 228 | commands = |
afazekas | 40fcb9b | 2019-03-08 11:25:11 +0100 | [diff] [blame] | 229 | autopep8 --exit-code --max-line-length=79 --experimental --diff -r tempest setup.py |
Masayuki Igawa | d81d3ce | 2016-04-20 15:00:54 +0900 | [diff] [blame] | 230 | flake8 {posargs} |
| 231 | check-uuid |
Matthew Treinish | 3d46811 | 2013-10-24 21:49:14 +0000 | [diff] [blame] | 232 | |
afazekas | 40fcb9b | 2019-03-08 11:25:11 +0100 | [diff] [blame] | 233 | [testenv:autopep8] |
| 234 | deps = autopep8 |
| 235 | basepython = python3 |
| 236 | commands = |
Attila Fazekas | c07edb5 | 2019-03-17 15:38:03 +0100 | [diff] [blame] | 237 | {toxinidir}/tools/format.sh |
afazekas | 40fcb9b | 2019-03-08 11:25:11 +0100 | [diff] [blame] | 238 | |
Chris Hoge | 7579c1a | 2015-02-26 14:12:15 -0800 | [diff] [blame] | 239 | [testenv:uuidgen] |
| 240 | commands = |
Masayuki Igawa | d81d3ce | 2016-04-20 15:00:54 +0900 | [diff] [blame] | 241 | check-uuid --fix |
Chris Hoge | 296558c | 2015-02-19 00:29:49 -0600 | [diff] [blame] | 242 | |
Giampaolo Lauria | 1b837ce | 2013-05-01 11:22:07 -0400 | [diff] [blame] | 243 | [hacking] |
Giampaolo Lauria | d50c27d | 2013-05-23 15:23:12 -0400 | [diff] [blame] | 244 | local-check-factory = tempest.hacking.checks.factory |
Matthew Treinish | 2b6db0c | 2014-05-17 10:42:36 -0400 | [diff] [blame] | 245 | import_exceptions = tempest.services |
Giampaolo Lauria | 1b837ce | 2013-05-01 11:22:07 -0400 | [diff] [blame] | 246 | |
Monty Taylor | b2ca5ca | 2013-04-28 18:00:21 -0700 | [diff] [blame] | 247 | [flake8] |
caoyuan | 349ba75 | 2019-04-23 19:40:06 +0800 | [diff] [blame] | 248 | # E125 is a won't fix until https://github.com/jcrocholl/pep8/issues/126 is resolved. For further detail see https://review.opendev.org/#/c/36788/ |
Matthew Treinish | 96e9e88 | 2014-06-09 18:37:19 -0400 | [diff] [blame] | 249 | # E123 skipped because it is ignored by default in the default pep8 |
Matthew Treinish | 1d14c54 | 2014-06-17 20:25:40 -0400 | [diff] [blame] | 250 | # E129 skipped because it is too limiting when combined with other rules |
Stephen Finucane | fc42cc6 | 2018-07-06 13:39:55 +0100 | [diff] [blame] | 251 | # W504 skipped because it is overeager and unnecessary |
| 252 | ignore = E125,E123,E129,W504 |
Monty Taylor | b2ca5ca | 2013-04-28 18:00:21 -0700 | [diff] [blame] | 253 | show-source = True |
junboli | 8bd00e3 | 2017-08-22 17:06:15 +0800 | [diff] [blame] | 254 | exclude = .git,.venv,.tox,dist,doc,*egg,build |
Jordan Pittier | 525ec71 | 2016-12-07 17:51:26 +0100 | [diff] [blame] | 255 | enable-extensions = H106,H203,H904 |
Masayuki Igawa | 134d9f7 | 2017-02-10 18:05:26 +0900 | [diff] [blame] | 256 | import-order-style = pep8 |
Andrea Frittoli (andreaf) | 897ecfb | 2016-02-23 10:12:48 -0500 | [diff] [blame] | 257 | |
| 258 | [testenv:releasenotes] |
Doug Hellmann | 05f3dfe | 2018-09-18 15:04:51 -0400 | [diff] [blame] | 259 | basepython = python3 |
junboli | 173b11c | 2018-01-15 11:25:35 +0800 | [diff] [blame] | 260 | deps = |
caoyuan | 349ba75 | 2019-04-23 19:40:06 +0800 | [diff] [blame] | 261 | -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} |
junboli | 173b11c | 2018-01-15 11:25:35 +0800 | [diff] [blame] | 262 | -r{toxinidir}/requirements.txt |
| 263 | -r{toxinidir}/doc/requirements.txt |
junboli | 8bd00e3 | 2017-08-22 17:06:15 +0800 | [diff] [blame] | 264 | commands = |
junboli | 173b11c | 2018-01-15 11:25:35 +0800 | [diff] [blame] | 265 | rm -rf releasenotes/build |
| 266 | sphinx-build -a -E -W -d releasenotes/build/doctrees \ |
| 267 | -b html releasenotes/source releasenotes/build/html |
| 268 | whitelist_externals = rm |
Jordan Pittier | cefaa2b | 2016-07-22 13:04:26 +0200 | [diff] [blame] | 269 | |
| 270 | [testenv:pip-check-reqs] |
| 271 | # Do not install test-requirements as that will pollute the virtualenv for |
| 272 | # determining missing packages. |
| 273 | # This also means that pip-check-reqs must be installed separately, outside |
| 274 | # of the requirements.txt files |
| 275 | deps = pip_check_reqs |
| 276 | -r{toxinidir}/requirements.txt |
| 277 | commands= |
| 278 | pip-extra-reqs -d --ignore-file=tempest/tests/* tempest |
| 279 | pip-missing-reqs -d --ignore-file=tempest/tests/* tempest |
Chandan Kumar | ac5c553 | 2016-11-30 18:49:26 +0530 | [diff] [blame] | 280 | |
| 281 | |
| 282 | [testenv:bindep] |
| 283 | # Do not install any requirements. We want this to be fast and work even if |
| 284 | # system dependencies are missing, since it's used to tell you what system |
| 285 | # dependencies are missing! This also means that bindep must be installed |
| 286 | # separately, outside of the requirements files. |
| 287 | deps = bindep |
| 288 | commands = bindep test |
Chandan Kumar | b7affe4 | 2017-06-29 13:57:01 +0530 | [diff] [blame] | 289 | |
| 290 | [testenv:plugin-sanity-check] |
| 291 | # perform tempest plugin sanity |
Masayuki Igawa | 8460cb1 | 2019-05-16 12:03:23 +0900 | [diff] [blame] | 292 | basepython = python3 |
Chandan Kumar | b7affe4 | 2017-06-29 13:57:01 +0530 | [diff] [blame] | 293 | whitelist_externals = bash |
| 294 | commands = |
| 295 | bash tools/tempest-plugin-sanity.sh |