2013-06-15 07:49:11 +01:00
|
|
|
[tox]
|
2016-11-08 14:15:10 +11:00
|
|
|
minversion = 2.0
|
2017-01-09 10:08:07 -08:00
|
|
|
envlist = py35,py27,pep8,bandit
|
2013-06-15 07:49:11 +01:00
|
|
|
|
|
|
|
[testenv]
|
2014-02-26 17:05:07 -08:00
|
|
|
setenv =
|
|
|
|
VIRTUAL_ENV={envdir}
|
2016-11-08 14:15:10 +11:00
|
|
|
BRANCH_NAME=master
|
|
|
|
CLIENT_NAME=oslo.messaging
|
2016-03-21 17:36:11 -04:00
|
|
|
passenv = OS_*
|
2016-11-08 14:15:10 +11:00
|
|
|
ZUUL_CACHE_DIR
|
|
|
|
REQUIREMENTS_PIP_LOCATION
|
|
|
|
install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
2015-11-14 23:06:55 -05:00
|
|
|
deps = -r{toxinidir}/test-requirements.txt
|
2013-06-15 07:49:11 +01:00
|
|
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
|
|
|
|
[testenv:pep8]
|
|
|
|
commands = flake8
|
2015-11-19 14:09:38 -05:00
|
|
|
deps = hacking<0.11,>=0.10.0
|
2013-06-15 07:49:11 +01:00
|
|
|
|
|
|
|
[testenv:cover]
|
|
|
|
commands =
|
2015-03-12 13:45:11 -07:00
|
|
|
python setup.py test --coverage --coverage-package-name=oslo_messaging --testr-args='{posargs}'
|
2013-06-15 07:49:11 +01:00
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
2014-06-26 06:32:27 +01:00
|
|
|
[testenv:docs]
|
2017-03-16 14:57:55 +00:00
|
|
|
basepython = python2.7
|
2014-06-26 06:32:27 +01:00
|
|
|
commands = python setup.py build_sphinx
|
|
|
|
|
2014-10-22 23:46:48 +02:00
|
|
|
[testenv:py27-func-rabbit]
|
2016-11-08 14:15:10 +11:00
|
|
|
setenv =
|
|
|
|
{[testenv]setenv}
|
|
|
|
TRANSPORT_DRIVER=rabbit
|
2016-04-07 10:35:18 +02:00
|
|
|
commands = pifpaf run rabbitmq -- python setup.py testr --slowest --testr-args='{posargs:oslo_messaging.tests.functional}'
|
2014-10-22 23:46:48 +02:00
|
|
|
|
2016-07-12 16:35:36 +08:00
|
|
|
[testenv:py35-func-rabbit]
|
2016-11-08 14:15:10 +11:00
|
|
|
setenv =
|
|
|
|
{[testenv]setenv}
|
|
|
|
TRANSPORT_DRIVER=rabbit
|
2016-07-12 16:35:36 +08:00
|
|
|
basepython = python3.5
|
|
|
|
commands = pifpaf run rabbitmq -- python setup.py testr --slowest --testr-args='{posargs:oslo_messaging.tests.functional}'
|
|
|
|
|
2015-10-01 18:53:17 +03:00
|
|
|
[testenv:py27-func-pika]
|
2016-11-08 14:15:10 +11:00
|
|
|
setenv =
|
|
|
|
{[testenv]setenv}
|
|
|
|
TRANSPORT_DRIVER=pika
|
2016-04-07 10:35:18 +02:00
|
|
|
commands = pifpaf run rabbitmq -- python setup.py testr --slowest --testr-args='{posargs:oslo_messaging.tests.functional}'
|
2015-10-01 18:53:17 +03:00
|
|
|
|
2016-11-30 15:37:32 +01:00
|
|
|
[testenv:py27-func-kafka]
|
|
|
|
setenv =
|
|
|
|
{[testenv]setenv}
|
|
|
|
TRANSPORT_DRIVER=kafka
|
2016-12-13 21:54:42 +01:00
|
|
|
OS_GROUP_REGEX=oslo_messaging.tests.functional
|
2016-06-21 14:57:17 +03:00
|
|
|
kafka-python>=1.3.1
|
2016-11-30 15:37:32 +01:00
|
|
|
commands = {toxinidir}/setup-test-env-kafka.sh python setup.py testr --slowest --testr-args='{posargs:oslo_messaging.tests.functional}'
|
|
|
|
|
2014-10-22 23:46:48 +02:00
|
|
|
[testenv:py27-func-amqp1]
|
2016-08-25 15:52:18 -04:00
|
|
|
setenv =
|
2016-11-08 14:15:10 +11:00
|
|
|
{[testenv]setenv}
|
2016-08-25 15:52:18 -04:00
|
|
|
TRANSPORT_URL=amqp://stackqpid:secretqpid@127.0.0.1:65123//
|
|
|
|
AMQP1_BACKEND=qpidd
|
|
|
|
ENVNAME={envname}
|
|
|
|
WORKDIR={toxworkdir}
|
2017-10-06 13:42:05 -04:00
|
|
|
commands = {toxinidir}/tools/setup-test-env-amqp1.sh python setup.py testr --slowest --testr-args='{posargs:oslo_messaging.tests.functional}'
|
2016-07-01 13:44:25 -04:00
|
|
|
|
2016-07-12 16:35:36 +08:00
|
|
|
[testenv:py35-func-amqp1]
|
|
|
|
basepython = python3.5
|
2016-08-25 15:52:18 -04:00
|
|
|
setenv =
|
2016-11-08 14:15:10 +11:00
|
|
|
{[testenv]setenv}
|
2016-08-25 15:52:18 -04:00
|
|
|
TRANSPORT_URL=amqp://stackqpid:secretqpid@127.0.0.1:65123//
|
|
|
|
AMQP1_BACKEND=qpidd
|
|
|
|
ENVNAME={envname}
|
|
|
|
WORKDIR={toxworkdir}
|
2017-10-06 13:42:05 -04:00
|
|
|
commands = {toxinidir}/tools/setup-test-env-amqp1.sh python setup.py testr --slowest --testr-args='{posargs:oslo_messaging.tests.functional}'
|
2016-07-12 16:35:36 +08:00
|
|
|
|
2016-12-15 09:42:01 +01:00
|
|
|
[testenv:py27-func-zmq]
|
2016-04-07 10:35:18 +02:00
|
|
|
commands = {toxinidir}/setup-test-env-zmq.sh python setup.py testr --slowest --testr-args='{posargs:oslo_messaging.tests.functional}'
|
2015-01-30 09:00:00 +01:00
|
|
|
|
2017-01-11 14:03:09 +02:00
|
|
|
[testenv:py35-func-zmq]
|
|
|
|
commands = {toxinidir}/setup-test-env-zmq.sh python setup.py testr --slowest --testr-args='{posargs:oslo_messaging.tests.functional}'
|
|
|
|
|
2017-01-16 10:09:40 +02:00
|
|
|
[testenv:py27-func-zmq-dyn]
|
|
|
|
commands = {toxinidir}/setup-test-env-zmq-direct-dynamic.sh python setup.py testr --slowest --testr-args='{posargs:oslo_messaging.tests.functional}'
|
2016-12-24 00:53:48 +02:00
|
|
|
|
2016-12-15 09:42:01 +01:00
|
|
|
[testenv:py27-func-zmq-proxy]
|
2016-10-27 16:46:23 +03:00
|
|
|
commands = {toxinidir}/setup-test-env-zmq-proxy.sh python setup.py testr --slowest --testr-args='{posargs:oslo_messaging.tests.functional}'
|
2016-07-04 12:28:57 +03:00
|
|
|
|
2016-12-15 09:42:01 +01:00
|
|
|
[testenv:py27-func-zmq-pubsub]
|
2016-10-27 16:46:23 +03:00
|
|
|
commands = {toxinidir}/setup-test-env-zmq-pub-sub.sh python setup.py testr --slowest --testr-args='{posargs:oslo_messaging.tests.functional}'
|
2016-07-04 12:28:57 +03:00
|
|
|
|
2015-10-26 11:01:11 +01:00
|
|
|
[testenv:bandit]
|
|
|
|
deps = -r{toxinidir}/test-requirements.txt
|
2016-03-12 20:03:32 -08:00
|
|
|
commands = bandit -r oslo_messaging -x tests -n5
|
2015-10-26 11:01:11 +01:00
|
|
|
|
2013-06-15 07:49:11 +01:00
|
|
|
[flake8]
|
|
|
|
show-source = True
|
2017-06-22 11:01:23 +08:00
|
|
|
enable-extensions = H203,H106
|
2016-01-15 13:18:34 +08:00
|
|
|
ignore = H405
|
2016-02-02 11:34:01 -05:00
|
|
|
exclude = .tox,dist,doc,*.egg,build,__init__.py
|
2014-06-24 14:11:38 +02:00
|
|
|
|
|
|
|
[hacking]
|
|
|
|
import_exceptions =
|
2015-01-02 14:24:57 -05:00
|
|
|
oslo_messaging._i18n
|
2014-07-18 15:32:56 +02:00
|
|
|
six.moves
|
2015-07-13 21:09:07 +00:00
|
|
|
local-check-factory = oslo_messaging.hacking.checks.factory
|
2015-06-25 21:25:12 -04:00
|
|
|
|
|
|
|
[testenv:pip-missing-reqs]
|
|
|
|
# do not install test-requirements as that will pollute the virtualenv for
|
|
|
|
# determining missing packages
|
|
|
|
# this also means that pip-missing-reqs must be installed separately, outside
|
|
|
|
# of the requirements.txt files
|
|
|
|
deps = pip_missing_reqs
|
|
|
|
commands = pip-missing-reqs -d --ignore-module=oslo_messaging* --ignore-file=oslo_messaging/tests/* --ignore-file=tests/ oslo_messaging
|
2016-05-19 16:49:51 +03:00
|
|
|
|
|
|
|
[testenv:releasenotes]
|
|
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
2016-12-01 08:17:18 +01:00
|
|
|
|
|
|
|
[testenv:bindep]
|
|
|
|
deps = bindep
|
|
|
|
commands = bindep {posargs}
|