2014-06-25 02:58:49 -07:00
|
|
|
[tox]
|
|
|
|
minversion = 1.6
|
2015-05-21 14:22:47 -07:00
|
|
|
envlist = docs,py27,py34,pep8,specs
|
2014-06-25 02:58:49 -07:00
|
|
|
skipsdist = True
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
usedevelop = True
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
install_command = pip install -U {opts} {packages}
|
2015-03-31 11:18:31 -05:00
|
|
|
whitelist_externals = find
|
2014-06-25 02:58:49 -07:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2015-02-16 12:33:13 -07:00
|
|
|
-r{toxinidir}/doc-requirements.txt
|
2015-03-31 11:18:31 -05:00
|
|
|
commands =
|
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
python setup.py testr --slowest --testr-args='{posargs}'
|
2014-06-25 02:58:49 -07:00
|
|
|
|
2015-03-27 16:10:59 +00:00
|
|
|
[testenv:cover]
|
|
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|
|
|
|
2014-06-25 02:58:49 -07:00
|
|
|
[testenv:pep8]
|
|
|
|
commands = flake8
|
2014-07-30 00:59:02 -07:00
|
|
|
doc8 specs doc/source octavia \
|
2015-08-03 18:43:23 -07:00
|
|
|
CONSTITUTION.rst HACKING.rst README.rst
|
2014-06-25 02:58:49 -07:00
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
commands = python setup.py build_sphinx
|
|
|
|
|
2015-09-30 16:31:55 +00:00
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
2015-08-25 17:36:27 +02:00
|
|
|
[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
|
|
|
|
|
2015-04-17 11:46:44 -05:00
|
|
|
[testenv:specs]
|
|
|
|
commands =
|
|
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
python -m unittest specs-tests.test_titles
|
|
|
|
|
2014-06-25 02:58:49 -07:00
|
|
|
[flake8]
|
2014-12-18 16:06:34 -08:00
|
|
|
# Ignoring O321 because it's unnecessarily restricting use of json package.
|
|
|
|
# jsonutils version doesn't add additional value
|
|
|
|
ignore = O321
|
2014-06-25 02:58:49 -07:00
|
|
|
show-source = true
|
2014-08-28 23:38:38 -07:00
|
|
|
builtins = _
|
|
|
|
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools,.ropeproject,rally-scenarios
|
2014-07-30 00:59:02 -07:00
|
|
|
|
2014-12-01 22:05:29 -07:00
|
|
|
[hacking]
|
|
|
|
import_exceptions = octavia.i18n
|
|
|
|
local-check-factory = octavia.hacking.checks.factory
|
|
|
|
|
2014-07-30 00:59:02 -07:00
|
|
|
[doc8]
|
|
|
|
max-line-length = 79
|