df2e1c4e5f
Change-Id: Ia3d17e76c94f9f324998bced21b9f5ace55c3f2d
47 lines
1.4 KiB
INI
47 lines
1.4 KiB
INI
[tox]
|
|
envlist = py26,py27,pep8
|
|
|
|
[testenv]
|
|
deps = -r{toxinidir}/tools/test-requires
|
|
-r{toxinidir}/tools/pip-requires
|
|
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
|
|
commands =
|
|
nosetests --no-path-adjustment --where=../nova_tests
|
|
nosetests --no-path-adjustment {posargs}
|
|
sitepackages = False
|
|
|
|
[testenv:cover]
|
|
commands = nosetests --no-path-adjustment --with-coverage --cover-erase --cover-package=ceilometer --cover-inclusive []
|
|
|
|
[testenv:pep8]
|
|
# Install bounded pep8/pyflakes first, then let flake8 install
|
|
deps = pep8==1.4.5
|
|
pyflakes==0.7.2
|
|
flake8==2.0
|
|
hacking>=0.5.3,<0.6
|
|
commands =
|
|
flake8 ceilometer setup.py bin/ceilometer-agent-central bin/ceilometer-agent-compute bin/ceilometer-collector bin/ceilometer-api tests
|
|
|
|
[testenv:docs]
|
|
deps = -r{toxinidir}/tools/test-requires
|
|
-r{toxinidir}/tools/pip-requires
|
|
sphinxcontrib-httpdomain
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:venv]
|
|
deps = -r{toxinidir}/tools/test-requires
|
|
-r{toxinidir}/tools/pip-requires
|
|
sphinxcontrib-httpdomain
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
ignore = E125,F401,F403,H
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools,nova_tests
|
|
show-source = True
|