2012-10-26 18:03:25 +01:00
|
|
|
[tox]
|
2017-01-20 11:21:23 +07:00
|
|
|
envlist = py35,py27,flake8
|
2016-12-21 12:52:21 +11:00
|
|
|
minversion = 2.0
|
2015-05-29 13:12:10 +01:00
|
|
|
skipsdist = True
|
2012-11-18 03:02:18 +00:00
|
|
|
|
2012-10-26 18:03:25 +01:00
|
|
|
[testenv]
|
2015-05-29 13:12:10 +01:00
|
|
|
usedevelop = True
|
2017-12-02 09:22:34 +01:00
|
|
|
install_command = pip install {opts} {packages}
|
2013-05-23 23:23:57 +02:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
LANG=en_US.UTF-8
|
|
|
|
LANGUAGE=en_US:en
|
|
|
|
LC_ALL=C
|
2017-12-02 09:22:34 +01:00
|
|
|
deps =
|
|
|
|
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
|
|
|
|
-r{toxinidir}/requirements.txt
|
2013-05-25 13:07:04 +01:00
|
|
|
-r{toxinidir}/test-requirements.txt
|
2015-11-18 14:32:54 +05:30
|
|
|
|
|
|
|
whitelist_externals = find
|
2016-04-07 15:11:27 +00:00
|
|
|
sh
|
2017-04-20 09:37:08 +01:00
|
|
|
rm
|
2015-11-18 14:32:54 +05:30
|
|
|
|
2013-05-23 23:23:57 +02:00
|
|
|
commands =
|
2015-11-18 14:32:54 +05:30
|
|
|
find . -type f -name "*.pyc" -delete
|
2016-04-07 15:11:27 +00:00
|
|
|
sh tools/pretty_tox.sh '{posargs}'
|
2015-12-04 10:49:54 +05:30
|
|
|
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
2013-05-23 23:23:57 +02:00
|
|
|
|
2016-04-19 16:41:53 -05:00
|
|
|
[testenv:docs]
|
2017-12-18 13:54:23 -06:00
|
|
|
deps =
|
|
|
|
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
|
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/doc/requirements.txt
|
|
|
|
commands = sphinx-build -b html doc/source doc/build/html
|
2016-04-19 16:41:53 -05:00
|
|
|
|
2013-06-09 15:06:11 +01:00
|
|
|
[testenv:flake8]
|
|
|
|
commands = flake8
|
|
|
|
|
2012-10-26 18:03:25 +01:00
|
|
|
[testenv:pep8]
|
2013-05-23 23:23:57 +02:00
|
|
|
commands = flake8
|
2012-11-18 03:02:18 +00:00
|
|
|
|
2013-06-09 15:06:11 +01:00
|
|
|
[testenv:pyflakes]
|
|
|
|
commands = flake8
|
|
|
|
|
2013-05-23 23:23:57 +02:00
|
|
|
[testenv:cover]
|
|
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
2012-11-18 03:14:48 +00:00
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
2013-05-23 23:23:57 +02:00
|
|
|
|
2015-08-24 15:41:17 +00:00
|
|
|
[testenv:functional]
|
|
|
|
usedevelop = False
|
2016-12-21 12:52:21 +11:00
|
|
|
setenv = {[testenv]setenv}
|
2015-08-24 15:41:17 +00:00
|
|
|
OS_TEST_PATH=designateclient/functionaltests/
|
|
|
|
passenv = OS_STDOUT_CAPTURE
|
|
|
|
OS_STDERR_CAPTURE
|
|
|
|
OS_LOG_CAPTURE
|
|
|
|
OS_DEBUG
|
|
|
|
TEMPEST_CONFIG
|
|
|
|
|
2016-05-16 21:24:38 +01:00
|
|
|
[testenv:releasenotes]
|
|
|
|
commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
|
2013-05-23 23:23:57 +02:00
|
|
|
[flake8]
|
2014-07-01 17:10:35 -05:00
|
|
|
# ignored flake8 codes:
|
|
|
|
# H302 import only modules
|
|
|
|
# H402 one line docstring needs punctuation
|
|
|
|
# H404 multi line docstring should start with a summary
|
|
|
|
# H405 multi line docstring summary not separated with an empty line
|
|
|
|
# H904 Wrap long lines in parentheses instead of a backslash
|
|
|
|
# See designate for other ignored codes that may apply here
|
|
|
|
|
2017-03-02 20:33:05 +08:00
|
|
|
ignore = H105, H302,H402,H404,H405,H904
|
2013-06-09 15:06:11 +01:00
|
|
|
builtins = _
|
2013-05-23 23:23:57 +02:00
|
|
|
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools
|