bc2e9beb3a
Octavia extensively uses TaskFlow flows for orchestration. To make it easier for developers to understand these flows, this patch adds a mechanism for generating graphviz representations of the key Octavia TaskFlow flows. It also updates our tox docs task to generate this documentation. This patch depends on a fix to the TaskFlow export_to_dot method. Added into conf.py as first step of configuration Closes-Bug: #1561063 Change-Id: I914e1c062b400148565def37ccf618b3d2ea2573 Depends-On: I99f87af0b2bed959fcb43ef611b3186e23bd9549
91 lines
2.5 KiB
INI
91 lines
2.5 KiB
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = docs,py35,py34,py27,pep8,specs
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
PYTHONWARNINGS=default::DeprecationWarning
|
|
install_command =
|
|
pip install -U -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
|
whitelist_externals = find
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/doc-requirements.txt
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:cover]
|
|
# TODO(ihrachys): remove once infra supports constraints for this target
|
|
install_command = pip install -U {opts} {packages}
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|
|
|
[testenv:debug]
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[testenv:debug-py27]
|
|
basepython = python2.7
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[testenv:debug-py34]
|
|
basepython = python3.4
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[testenv:debug-py35]
|
|
basepython = python3.5
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
doc8 specs doc/source octavia \
|
|
CONSTITUTION.rst HACKING.rst README.rst
|
|
|
|
[testenv:docs]
|
|
commands =
|
|
python setup.py build_sphinx
|
|
|
|
[testenv:venv]
|
|
# TODO(ihrachys): remove once infra supports constraints for this target
|
|
install_command = pip install -U {opts} {packages}
|
|
commands = {posargs}
|
|
|
|
[testenv:genconfig]
|
|
commands =
|
|
oslo-config-generator --output-file etc/octavia/octavia.conf.sample \
|
|
--namespace octavia \
|
|
--namespace oslo.db \
|
|
--namespace oslo.log \
|
|
--namespace oslo.messaging \
|
|
--namespace keystonemiddleware.auth_token
|
|
|
|
[testenv:specs]
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
python -m unittest specs-tests.test_titles
|
|
|
|
|
|
[testenv:bandit]
|
|
commands = bandit-baseline -r octavia -ll -ii
|
|
|
|
[flake8]
|
|
# Ignoring O321 because it's unnecessarily restricting use of json package.
|
|
# jsonutils version doesn't add additional value
|
|
ignore = O321
|
|
show-source = true
|
|
builtins = _
|
|
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
|
|
|
[hacking]
|
|
import_exceptions = octavia.i18n
|
|
local-check-factory = octavia.hacking.checks.factory
|
|
|
|
[doc8]
|
|
max-line-length = 79
|
|
|
|
[testenv:releasenotes]
|
|
# TODO(ihrachys): remove once infra supports constraints for this target
|
|
install_command = pip install -U {opts} {packages}
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|