From c1bf5e36a0edfe30cbc423decc82e1b969345456 Mon Sep 17 00:00:00 2001 From: Alessandro Pilotti Date: Wed, 10 Sep 2014 12:57:37 +0300 Subject: [PATCH] Adds tox.ini --- tox.ini | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 tox.ini diff --git a/tox.ini b/tox.ini new file mode 100644 index 00000000..8980f592 --- /dev/null +++ b/tox.ini @@ -0,0 +1,40 @@ +[tox] +minversion = 1.6 +envlist = py27,py33,pep8 +skipsdist = True + +[testenv] +usedevelop = True +install_command = pip install -U --force-reinstall {opts} {packages} +setenv = VIRTUAL_ENV={envdir} + +deps = -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt +commands = python setup.py testr --testr-args='{posargs}' + +[tox:jenkins] +downloadcache = ~/cache/pip + +[testenv:pep8] +commands = flake8 {posargs} + +[testenv:pylint] +commands = bash tools/lintstack.sh + +[testenv:cover] +commands = python setup.py testr --coverage --testr-args='{posargs}' + +[testenv:venv] +commands = {posargs} + +[testenv:docs] +commands = python setup.py build_sphinx + +[flake8] +# E125 is deliberately excluded. See https://github.com/jcrocholl/pep8/issues/126 +# E251 Skipped due to https://github.com/jcrocholl/pep8/issues/301 + +ignore = E125,E251 +exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools + +[hacking]