2012-07-24 19:40:29 -04:00
|
|
|
[tox]
|
2016-07-22 13:04:26 +02:00
|
|
|
envlist = pep8,py35,py34,py27,pip-check-reqs
|
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
|
2017-01-09 12:57:37 +01:00
|
|
|
BRANCH_NAME=master
|
|
|
|
CLIENT_NAME=tempest
|
2016-04-20 15:00:54 +09:00
|
|
|
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
|
2016-06-29 15:33:56 +08:00
|
|
|
PYTHONWARNINGS=default::DeprecationWarning
|
2017-01-09 12:57:37 +01:00
|
|
|
BRANCH_NAME=master
|
|
|
|
CLIENT_NAME=tempest
|
|
|
|
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 ZUUL_CACHE_DIR REQUIREMENTS_PIP_LOCATION
|
2013-10-03 14:58:54 +00:00
|
|
|
usedevelop = True
|
2017-01-09 12:57:37 +01:00
|
|
|
install_command =
|
|
|
|
{toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {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
|
2016-09-09 18:04:50 -04:00
|
|
|
ostestr {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
|
2016-07-28 14:47:27 -04:00
|
|
|
tempest run --regex {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
|
2016-07-28 14:47:27 -04:00
|
|
|
tempest run --regex {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
|
2016-07-28 14:47:27 -04:00
|
|
|
tempest run --regex '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario))' {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
|
2016-09-21 11:47:32 +02:00
|
|
|
tempest run --serial --regex '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario))' {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
|
2016-07-28 14:47:27 -04:00
|
|
|
tempest run --regex '\[.*\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
|
2016-07-28 14:47:27 -04:00
|
|
|
tempest run --serial --regex '\[.*\bsmoke\b.*\]' {posargs}
|
2013-05-02 14:33:18 -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-11-19 09:48:27 +00:00
|
|
|
ignore = E125,E123,E129
|
2013-04-28 18:00:21 -07:00
|
|
|
show-source = True
|
2016-09-21 13:40:42 +08:00
|
|
|
exclude = .git,.venv,.tox,dist,doc,*egg
|
2016-12-07 17:51:26 +01:00
|
|
|
enable-extensions = H106,H203,H904
|
2017-02-10 18:05:26 +09:00
|
|
|
import-order-style = pep8
|
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
|
2016-07-22 13:04:26 +02:00
|
|
|
|
|
|
|
[testenv:pip-check-reqs]
|
|
|
|
# Do not install test-requirements as that will pollute the virtualenv for
|
|
|
|
# determining missing packages.
|
|
|
|
# This also means that pip-check-reqs must be installed separately, outside
|
|
|
|
# of the requirements.txt files
|
|
|
|
deps = pip_check_reqs
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
commands=
|
|
|
|
pip-extra-reqs -d --ignore-file=tempest/tests/* tempest
|
|
|
|
pip-missing-reqs -d --ignore-file=tempest/tests/* tempest
|
2016-11-30 18:49:26 +05:30
|
|
|
|
|
|
|
|
|
|
|
[testenv:bindep]
|
|
|
|
# Do not install any requirements. We want this to be fast and work even if
|
|
|
|
# system dependencies are missing, since it's used to tell you what system
|
|
|
|
# dependencies are missing! This also means that bindep must be installed
|
|
|
|
# separately, outside of the requirements files.
|
|
|
|
deps = bindep
|
|
|
|
commands = bindep test
|