2013-06-15 07:49:11 +01:00
|
|
|
[tox]
|
2016-11-08 14:15:10 +11:00
|
|
|
minversion = 2.0
|
2016-07-12 16:35:36 +08:00
|
|
|
envlist = py35,py34,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]
|
|
|
|
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-03-21 11:41:34 -04:00
|
|
|
[testenv:py34-func-rabbit]
|
2016-11-08 14:15:10 +11:00
|
|
|
setenv =
|
|
|
|
{[testenv]setenv}
|
|
|
|
TRANSPORT_DRIVER=rabbit
|
2016-03-21 11:41:34 -04:00
|
|
|
basepython = python3.4
|
2016-04-07 10:35:18 +02:00
|
|
|
commands = pifpaf run rabbitmq -- python setup.py testr --slowest --testr-args='{posargs:oslo_messaging.tests.functional}'
|
2016-03-21 11:41:34 -04: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
|
|
|
|
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}
|
2016-07-01 13:44:25 -04:00
|
|
|
# NOTE(kgiusti): This gate job runs on Centos 7 for now.
|
2016-08-25 15:52:18 -04:00
|
|
|
commands = {toxinidir}/setup-test-env-amqp1.sh python setup.py testr --slowest --testr-args='oslo_messaging.tests.functional'
|
2016-07-01 13:44:25 -04:00
|
|
|
|
|
|
|
[testenv:py34-func-amqp1]
|
|
|
|
basepython = python3.4
|
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}
|
2016-07-01 13:44:25 -04:00
|
|
|
# NOTE(kgiusti): This gate job runs on Centos 7 for now.
|
2016-08-25 15:52:18 -04:00
|
|
|
commands = {toxinidir}/setup-test-env-amqp1.sh python setup.py testr --slowest --testr-args='oslo_messaging.tests.functional'
|
2014-03-31 17:14:55 +01: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}
|
2016-07-12 16:35:36 +08:00
|
|
|
# NOTE(kgiusti): This gate job runs on Centos 7 for now.
|
2016-08-25 15:52:18 -04:00
|
|
|
commands = {toxinidir}/setup-test-env-amqp1.sh python setup.py testr --slowest --testr-args='oslo_messaging.tests.functional'
|
2016-07-12 16:35:36 +08:00
|
|
|
|
2015-01-30 09:00:00 +01:00
|
|
|
[testenv:py27-func-zeromq]
|
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
|
|
|
|
2016-07-12 15:17:27 +03:00
|
|
|
[testenv:py34-func-zeromq]
|
|
|
|
basepython = python3.4
|
|
|
|
commands = {toxinidir}/setup-test-env-zmq.sh python setup.py testr --slowest --testr-args='{posargs:oslo_messaging.tests.functional}'
|
|
|
|
|
2016-07-04 12:28:57 +03:00
|
|
|
[testenv:py27-func-zeromq-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
|
|
|
|
|
|
|
[testenv:py27-func-zeromq-pub-sub]
|
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
|
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
|