2013-04-04 14:11:31 +00:00
|
|
|
[tox]
|
2014-03-08 12:26:45 +00:00
|
|
|
envlist = py26,py27,pep8
|
|
|
|
minversion = 1.6
|
|
|
|
skipsdist = True
|
2013-04-04 14:11:31 +00:00
|
|
|
|
|
|
|
[testenv]
|
2014-03-08 12:26:45 +00:00
|
|
|
usedevelop = True
|
|
|
|
install_command = pip install -U {opts} {packages}
|
2013-04-04 14:11:31 +00:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
NOSE_WITH_OPENSTACK=1
|
|
|
|
NOSE_OPENSTACK_COLOR=1
|
|
|
|
NOSE_OPENSTACK_RED=0.05
|
|
|
|
NOSE_OPENSTACK_YELLOW=0.025
|
|
|
|
NOSE_OPENSTACK_SHOW_ELAPSED=1
|
2013-07-23 10:29:18 +00:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2014-03-15 16:30:01 +00:00
|
|
|
commands = nosetests -w muranoapi/tests
|
2013-04-04 14:11:31 +00:00
|
|
|
|
|
|
|
[testenv:pep8]
|
2014-03-08 12:26:45 +00:00
|
|
|
commands =
|
|
|
|
flake8 {posargs}
|
2013-04-04 14:11:31 +00:00
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
|
|
|
[testenv:cover]
|
2013-04-25 06:13:42 +00:00
|
|
|
commands = nosetests --cover-erase --cover-package=muranoapi --with-xcoverage
|
2013-04-04 14:11:31 +00:00
|
|
|
|
2014-04-16 12:20:01 +00:00
|
|
|
[testenv:docs]
|
|
|
|
commands =
|
|
|
|
rm -rf doc/html doc/build
|
|
|
|
rm -rf doc/source/apidoc doc/source/api
|
|
|
|
python setup.py build_sphinx
|
|
|
|
|
2013-04-04 14:11:31 +00:00
|
|
|
[tox:jenkins]
|
|
|
|
downloadcache = ~/cache/pip
|
|
|
|
|
|
|
|
[testenv:jenkins26]
|
|
|
|
basepython = python2.6
|
|
|
|
setenv = NOSE_WITH_XUNIT=1
|
|
|
|
deps = file://{toxinidir}/.cache.bundle
|
|
|
|
|
|
|
|
[testenv:jenkins27]
|
|
|
|
basepython = python2.7
|
|
|
|
setenv = NOSE_WITH_XUNIT=1
|
|
|
|
deps = file://{toxinidir}/.cache.bundle
|
|
|
|
|
|
|
|
[testenv:jenkinscover]
|
|
|
|
deps = file://{toxinidir}/.cache.bundle
|
|
|
|
setenv = NOSE_WITH_XUNIT=1
|
2013-04-25 06:13:42 +00:00
|
|
|
commands = nosetests --cover-erase --cover-package=muranoapi --with-xcoverage
|
2013-04-04 14:11:31 +00:00
|
|
|
|
|
|
|
[testenv:jenkinsvenv]
|
|
|
|
deps = file://{toxinidir}/.cache.bundle
|
|
|
|
setenv = NOSE_WITH_XUNIT=1
|
|
|
|
commands = {posargs}
|
2013-05-14 12:02:03 +00:00
|
|
|
|
|
|
|
[testenv:pyflakes]
|
|
|
|
deps = flake8
|
|
|
|
commands = flake8
|
|
|
|
|
|
|
|
[flake8]
|
2014-03-08 12:26:45 +00:00
|
|
|
# H101 Use TODO(NAME)
|
|
|
|
# H202 assertRaises Exception too broad
|
|
|
|
# H231 Python 3.x incompatible 'except x,y:' construct
|
|
|
|
# H402 one line docstring needs punctuation
|
|
|
|
# H404 multi line docstring should start without a leading new line
|
|
|
|
# H501 Do not use locals() for string formatting
|
|
|
|
# H702 Argument to _ must be just a string
|
|
|
|
# H902 Use the 'not in' operator for collection membership evaluation
|
2014-03-08 13:17:35 +00:00
|
|
|
ignore = H101,H202,H231,H402,H404,H501,H702,H902
|
2013-05-14 12:02:03 +00:00
|
|
|
show-source = true
|
|
|
|
builtins = _
|
2014-02-20 11:37:28 +00:00
|
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools
|