aaea34dea1
Change-Id: Ice2ca4eca53401bc80386f10349193e7a8013dae
39 lines
881 B
INI
39 lines
881 B
INI
[tox]
|
|
envlist = py26,py27,pep8,pyflakes
|
|
|
|
[testenv]
|
|
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
|
|
deps = -r{toxinidir}/tools/pip-requires
|
|
-r{toxinidir}/tools/test-requires
|
|
commands =
|
|
|
|
[testenv:pep8]
|
|
deps = pep8==1.3.3
|
|
commands = pep8 --repeat --show-source muranodashboard setup.py
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
commands = nosetests --cover-erase --cover-package=muranodashboard --with-xcoverage
|
|
|
|
[testenv:pyflakes]
|
|
deps = flake8
|
|
commands = flake8
|
|
|
|
[tox:jenkins]
|
|
downloadcache = ~/cache/pip
|
|
|
|
[flake8]
|
|
# H301 one import per line
|
|
# H302 import only modules
|
|
ignore = H301,H302,F403
|
|
show-source = true
|
|
builtins = _
|
|
exclude=.build,.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools
|