diff options
author | WuKong <rebirthmonkey@gmail.com> | 2015-07-01 08:54:55 +0200 |
---|---|---|
committer | WuKong <rebirthmonkey@gmail.com> | 2015-07-01 08:54:55 +0200 |
commit | 03bf0c32a0c656d4b91bebedc87a005e6d7563bb (patch) | |
tree | 7ab486ea98c8255bd28b345e9fd5b54d1b31c802 /keystonemiddleware-moon/tox.ini | |
parent | 53d12675bc07feb552492df2d01fcd298167c363 (diff) |
migrate openstack hook to opnfv
Change-Id: I1e828dae38820fdff93966e57691b344af01140f
Signed-off-by: WuKong <rebirthmonkey@gmail.com>
Diffstat (limited to 'keystonemiddleware-moon/tox.ini')
-rw-r--r-- | keystonemiddleware-moon/tox.ini | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/keystonemiddleware-moon/tox.ini b/keystonemiddleware-moon/tox.ini new file mode 100644 index 00000000..08cd205f --- /dev/null +++ b/keystonemiddleware-moon/tox.ini @@ -0,0 +1,54 @@ +[tox] +minversion = 1.6 +skipsdist = True +envlist = py26,py27,py33,py34,pep8 + +[testenv] +usedevelop = True +install_command = pip install -U {opts} {packages} +setenv = VIRTUAL_ENV={envdir} + OS_STDOUT_NOCAPTURE=False + OS_STDERR_NOCAPTURE=False + +deps = -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt +commands = python setup.py testr --testr-args='{posargs}' + +[testenv:py33] +deps = -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements-py3.txt + +[testenv:py34] +deps = -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements-py3.txt + +[testenv:pep8] +commands = + flake8 + +[testenv:venv] +commands = {posargs} + +[testenv:cover] +commands = python setup.py testr --coverage --testr-args='{posargs}' + +[tox:jenkins] +downloadcache = ~/cache/pip + +[testenv:debug] + +commands = oslo_debug_helper {posargs} + +[flake8] +# H405: multi line docstring summary not separated with an empty line +ignore = H405 +show-source = True +exclude = .venv,.tox,dist,doc,*egg,build,*openstack/common* + +[testenv:docs] +commands= + python setup.py build_sphinx + +[hacking] +import_exceptions = + keystonemiddleware.i18n |