5181724ece
The cfg API is now available via the oslo-config library, so switch to it and remove the copied-and-pasted version. Add the 2013.1b3 tarball to tools/pip-requires - this will be changed to 'oslo-config>=2013.1' when oslo-config is published to pypi. This will happen in time for grizzly final. For each testenv in tox.ini which overrides the base testenv deps list, explicitly include {pip,test}-requires in the list so that oslo-config doesn't fail to install later when easy_install attempts to install the tarball when doing 'python setup.py install'. Retain dummy cfg.py file until keystoneclient middleware has been updated (I18c450174277c8e2d15ed93879da6cd92074c27a). Change-Id: I4815aeb8a9341a31a250e920157f15ee15cfc5bc
61 lines
1.9 KiB
INI
61 lines
1.9 KiB
INI
[tox]
|
|
envlist = py26,py27,py26-folsom,py27-folsom,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 = {toxinidir}/wrap_nosetests.sh --no-path-adjustment []
|
|
sitepackages = False
|
|
|
|
[testenv:livedb]
|
|
setenv=CEILOMETER_TEST_LIVE=1
|
|
|
|
[testenv:cover]
|
|
commands = {toxinidir}/wrap_nosetests.sh --no-path-adjustment --with-coverage --cover-erase --cover-package=ceilometer --cover-inclusive []
|
|
|
|
[testenv:pep8]
|
|
deps = -r{toxinidir}/tools/test-requires
|
|
-r{toxinidir}/tools/pip-requires
|
|
pep8==1.3.3
|
|
commands =
|
|
pep8 --repeat --ignore=E125 --show-source ceilometer setup.py bin/ceilometer-agent-central bin/ceilometer-agent-compute bin/ceilometer-collector bin/ceilometer-api tests
|
|
|
|
[testenv:hacking]
|
|
deps = -r{toxinidir}/tools/test-requires
|
|
-r{toxinidir}/tools/pip-requires
|
|
pep8==1.3.3
|
|
commands =
|
|
python tools/hacking.py --doctest
|
|
python tools/hacking.py --ignore=E12,E711,E721,E712,N403,N404 --show-source \
|
|
--exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg .
|
|
python tools/hacking.py --ignore=E12,E711,E721,E712,N403,N404 --show-source \
|
|
--filename=ceilometer* bin
|
|
|
|
[testenv:venv]
|
|
deps = -r{toxinidir}/tools/test-requires
|
|
-r{toxinidir}/tools/pip-requires
|
|
sphinxcontrib-httpdomain
|
|
commands = {posargs}
|
|
|
|
[testenv:py26-folsom]
|
|
basepython = python2.6
|
|
deps = -r{toxinidir}/tools/test-requires-folsom
|
|
-r{toxinidir}/tools/pip-requires
|
|
|
|
[testenv:py27-folsom]
|
|
basepython = python2.7
|
|
deps = -r{toxinidir}/tools/test-requires-folsom
|
|
-r{toxinidir}/tools/pip-requires
|
|
|
|
[testenv:pyflakes]
|
|
deps = -r{toxinidir}/tools/test-requires
|
|
-r{toxinidir}/tools/pip-requires
|
|
pyflakes
|
|
commands = python tools/flakes.py ceilometer
|