2012-07-24 19:40:29 -04:00
|
|
|
[tox]
|
2015-12-01 22:38:57 -05:00
|
|
|
envlist = pep8,py34,py27
|
2016-01-14 17:15:29 +09:00
|
|
|
minversion = 2.3.1
|
2013-10-03 14:58:54 +00:00
|
|
|
skipsdist = True
|
2012-07-24 19:40:29 -04:00
|
|
|
|
2014-09-23 17:39:38 -04:00
|
|
|
[tempestenv]
|
2015-01-28 11:23:43 -08:00
|
|
|
sitepackages = False
|
2016-04-20 15:00:54 +09:00
|
|
|
setenv =
|
|
|
|
VIRTUAL_ENV={envdir}
|
|
|
|
OS_TEST_PATH=./tempest/test_discover
|
|
|
|
deps =
|
|
|
|
setuptools
|
|
|
|
-r{toxinidir}/requirements.txt
|
2014-09-23 17:39:38 -04:00
|
|
|
|
|
|
|
[testenv]
|
2016-04-20 15:00:54 +09:00
|
|
|
setenv =
|
|
|
|
VIRTUAL_ENV={envdir}
|
|
|
|
OS_TEST_PATH=./tempest/tests
|
2015-06-12 14:41:41 +08:00
|
|
|
passenv = OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_TEST_TIMEOUT OS_TEST_LOCK_PATH OS_TEST_PATH TEMPEST_CONFIG TEMPEST_CONFIG_DIR http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
2013-10-03 14:58:54 +00:00
|
|
|
usedevelop = True
|
2014-02-20 18:50:41 -05:00
|
|
|
install_command = pip install -U {opts} {packages}
|
2014-09-23 17:39:38 -04:00
|
|
|
whitelist_externals = *
|
2016-04-20 15:00:54 +09:00
|
|
|
deps =
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2014-11-25 08:18:23 -05:00
|
|
|
commands =
|
2016-04-20 15:00:54 +09:00
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash tools/pretty_tox.sh '{posargs}'
|
2013-10-03 15:20:09 +00:00
|
|
|
|
2014-08-05 18:11:29 +00:00
|
|
|
[testenv:genconfig]
|
2016-06-21 18:06:49 -04:00
|
|
|
commands = oslo-config-generator --config-file tempest/cmd/config-generator.tempest.conf
|
2014-08-05 18:11:29 +00:00
|
|
|
|
2014-01-07 21:54:55 +00:00
|
|
|
[testenv:cover]
|
|
|
|
setenv = OS_TEST_PATH=./tempest/tests
|
|
|
|
commands = python setup.py testr --coverage --testr-arg='tempest\.tests {posargs}'
|
|
|
|
|
2013-06-07 14:59:19 -04:00
|
|
|
[testenv:all]
|
2016-04-29 16:38:51 -04:00
|
|
|
envdir = .tox/tempest
|
2014-09-23 17:39:38 -04:00
|
|
|
sitepackages = {[tempestenv]sitepackages}
|
2014-10-27 11:43:52 -04:00
|
|
|
# 'all' includes slow tests
|
2016-04-20 15:00:54 +09:00
|
|
|
setenv =
|
|
|
|
{[tempestenv]setenv}
|
|
|
|
OS_TEST_TIMEOUT={env:OS_TEST_TIMEOUT:1200}
|
2014-09-23 17:39:38 -04:00
|
|
|
deps = {[tempestenv]deps}
|
2013-06-07 14:59:19 -04:00
|
|
|
commands =
|
2016-04-20 15:00:54 +09:00
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash tools/pretty_tox.sh '{posargs}'
|
2013-06-17 15:29:10 -04:00
|
|
|
|
2015-11-20 14:51:31 -05:00
|
|
|
[testenv:ostestr]
|
|
|
|
sitepackages = {[tempestenv]sitepackages}
|
|
|
|
# 'all' includes slow tests
|
|
|
|
setenv =
|
|
|
|
{[tempestenv]setenv}
|
|
|
|
OS_TEST_TIMEOUT={env:OS_TEST_TIMEOUT:1200}
|
|
|
|
deps = {[tempestenv]deps}
|
|
|
|
commands =
|
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
ostestr {posargs}
|
|
|
|
|
2015-07-27 15:19:08 +02:00
|
|
|
[testenv:all-plugin]
|
|
|
|
sitepackages = True
|
|
|
|
# 'all' includes slow tests
|
2016-04-20 15:00:54 +09:00
|
|
|
setenv =
|
|
|
|
{[tempestenv]setenv}
|
|
|
|
OS_TEST_TIMEOUT={env:OS_TEST_TIMEOUT:1200}
|
2015-07-27 15:19:08 +02:00
|
|
|
deps = {[tempestenv]deps}
|
|
|
|
commands =
|
2016-04-20 15:00:54 +09:00
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash tools/pretty_tox.sh '{posargs}'
|
2015-07-27 15:19:08 +02:00
|
|
|
|
2013-05-02 14:33:18 -04:00
|
|
|
[testenv:full]
|
2016-04-29 16:38:51 -04:00
|
|
|
envdir = .tox/tempest
|
2014-09-23 17:39:38 -04:00
|
|
|
sitepackages = {[tempestenv]sitepackages}
|
|
|
|
setenv = {[tempestenv]setenv}
|
|
|
|
deps = {[tempestenv]deps}
|
2013-08-07 15:48:21 -04:00
|
|
|
# The regex below is used to select which tests to run and exclude the slow tag:
|
2015-12-01 16:51:34 +09:00
|
|
|
# See the testrepository bug: https://bugs.launchpad.net/testrepository/+bug/1208610
|
2013-07-30 16:37:32 -04:00
|
|
|
commands =
|
2016-04-20 15:00:54 +09:00
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty)) {posargs}'
|
2013-07-30 16:37:32 -04:00
|
|
|
|
2014-02-10 09:21:51 -05:00
|
|
|
[testenv:full-serial]
|
2016-04-29 16:38:51 -04:00
|
|
|
envdir = .tox/tempest
|
2014-09-23 17:39:38 -04:00
|
|
|
sitepackages = {[tempestenv]sitepackages}
|
|
|
|
setenv = {[tempestenv]setenv}
|
|
|
|
deps = {[tempestenv]deps}
|
2014-02-10 09:21:51 -05:00
|
|
|
# The regex below is used to select which tests to run and exclude the slow tag:
|
2015-12-01 16:51:34 +09:00
|
|
|
# See the testrepository bug: https://bugs.launchpad.net/testrepository/+bug/1208610
|
2014-02-10 09:21:51 -05:00
|
|
|
commands =
|
2016-04-20 15:00:54 +09:00
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash tools/pretty_tox_serial.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty)) {posargs}'
|
2014-02-10 09:21:51 -05:00
|
|
|
|
2013-05-02 14:33:18 -04:00
|
|
|
[testenv:smoke]
|
2016-04-29 16:38:51 -04:00
|
|
|
envdir = .tox/tempest
|
2014-09-23 17:39:38 -04:00
|
|
|
sitepackages = {[tempestenv]sitepackages}
|
|
|
|
setenv = {[tempestenv]setenv}
|
|
|
|
deps = {[tempestenv]deps}
|
2013-11-14 12:55:55 -08:00
|
|
|
commands =
|
2016-04-20 15:00:54 +09:00
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash tools/pretty_tox.sh '\[.*\bsmoke\b.*\] {posargs}'
|
2013-11-14 12:55:55 -08:00
|
|
|
|
|
|
|
[testenv:smoke-serial]
|
2016-04-29 16:38:51 -04:00
|
|
|
envdir = .tox/tempest
|
2014-09-23 17:39:38 -04:00
|
|
|
sitepackages = {[tempestenv]sitepackages}
|
|
|
|
setenv = {[tempestenv]setenv}
|
|
|
|
deps = {[tempestenv]deps}
|
2013-11-14 12:55:55 -08:00
|
|
|
# This is still serial because neutron doesn't work with parallel. See:
|
|
|
|
# https://bugs.launchpad.net/tempest/+bug/1216076 so the neutron smoke
|
|
|
|
# job would fail if we moved it to parallel.
|
2013-05-02 14:33:18 -04:00
|
|
|
commands =
|
2016-04-20 15:00:54 +09:00
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
bash tools/pretty_tox_serial.sh '\[.*\bsmoke\b.*\] {posargs}'
|
2013-05-02 14:33:18 -04:00
|
|
|
|
2013-07-02 17:50:41 -04:00
|
|
|
[testenv:stress]
|
2016-04-29 16:38:51 -04:00
|
|
|
envdir = .tox/tempest
|
2014-09-23 17:39:38 -04:00
|
|
|
sitepackages = {[tempestenv]sitepackages}
|
|
|
|
setenv = {[tempestenv]setenv}
|
|
|
|
deps = {[tempestenv]deps}
|
2013-07-02 17:50:41 -04:00
|
|
|
commands =
|
2014-11-11 15:29:00 -05:00
|
|
|
run-tempest-stress {posargs}
|
2013-07-02 17:50:41 -04:00
|
|
|
|
2013-05-21 17:57:41 -04:00
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
2016-04-29 16:38:51 -04:00
|
|
|
[testenv:venv-tempest]
|
|
|
|
envdir = .tox/tempest
|
|
|
|
sitepackages = {[tempestenv]sitepackages}
|
|
|
|
setenv = {[tempestenv]setenv}
|
|
|
|
deps = {[tempestenv]deps}
|
|
|
|
commands = {posargs}
|
|
|
|
|
2014-06-18 21:58:32 -04:00
|
|
|
[testenv:docs]
|
2015-07-30 20:24:08 +00:00
|
|
|
commands =
|
2016-04-20 15:00:54 +09:00
|
|
|
python setup.py build_sphinx {posargs}
|
2014-06-18 21:58:32 -04:00
|
|
|
|
2012-07-24 19:40:29 -04:00
|
|
|
[testenv:pep8]
|
2013-10-24 21:49:14 +00:00
|
|
|
commands =
|
2016-04-20 15:00:54 +09:00
|
|
|
flake8 {posargs}
|
|
|
|
check-uuid
|
2013-10-24 21:49:14 +00:00
|
|
|
|
2015-02-26 14:12:15 -08:00
|
|
|
[testenv:uuidgen]
|
|
|
|
commands =
|
2016-04-20 15:00:54 +09:00
|
|
|
check-uuid --fix
|
2015-02-19 00:29:49 -06:00
|
|
|
|
2013-05-01 11:22:07 -04:00
|
|
|
[hacking]
|
2013-05-23 15:23:12 -04:00
|
|
|
local-check-factory = tempest.hacking.checks.factory
|
2014-05-17 10:42:36 -04:00
|
|
|
import_exceptions = tempest.services
|
2013-05-01 11:22:07 -04:00
|
|
|
|
2013-04-28 18:00:21 -07:00
|
|
|
[flake8]
|
2013-07-18 14:10:19 -07:00
|
|
|
# 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/
|
2014-06-09 18:37:19 -04:00
|
|
|
# E123 skipped because it is ignored by default in the default pep8
|
2014-06-17 20:25:40 -04:00
|
|
|
# E129 skipped because it is too limiting when combined with other rules
|
2015-02-25 12:42:37 -08:00
|
|
|
# Skipped because of new hacking 0.9: H405
|
2015-11-19 09:48:27 +00:00
|
|
|
ignore = E125,E123,E129
|
2013-04-28 18:00:21 -07:00
|
|
|
show-source = True
|
|
|
|
exclude = .git,.venv,.tox,dist,doc,openstack,*egg
|
2016-02-23 10:12:48 -05:00
|
|
|
|
|
|
|
[testenv:releasenotes]
|
|
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|