2012-05-29 17:57:58 -04:00
|
|
|
[tox]
|
2016-09-14 10:03:42 +02:00
|
|
|
minversion = 1.8
|
2013-09-04 16:49:14 -04:00
|
|
|
skipsdist = True
|
2017-10-17 18:14:01 +02:00
|
|
|
envlist = py{27,35},pep8
|
2012-05-29 17:57:58 -04:00
|
|
|
|
|
|
|
[testenv]
|
2017-10-17 18:14:01 +02:00
|
|
|
deps = .[gnocchi,zaqar]
|
2013-05-28 10:11:07 +10:00
|
|
|
-r{toxinidir}/test-requirements.txt
|
2016-12-21 09:42:44 +11:00
|
|
|
# NOTE(tonyb): This project has chosen to *NOT* consume upper-constraints.txt
|
2015-01-22 11:06:55 +08:00
|
|
|
install_command = pip install -U {opts} {packages}
|
2013-09-04 16:49:14 -04:00
|
|
|
usedevelop = True
|
2012-05-29 17:57:58 -04:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2016-09-14 10:03:42 +02:00
|
|
|
CEILOMETER_TEST_BACKEND={env:CEILOMETER_TEST_BACKEND:none}
|
|
|
|
passenv = OS_TEST_TIMEOUT OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_LOG_CAPTURE CEILOMETER_*
|
2013-02-25 15:16:23 -05:00
|
|
|
commands =
|
2018-07-02 13:20:05 +02:00
|
|
|
stestr run {posargs}
|
2015-10-20 17:24:55 +08:00
|
|
|
oslo-config-generator --config-file=etc/ceilometer/ceilometer-config-generator.conf
|
2014-03-29 06:52:48 +01:00
|
|
|
whitelist_externals = bash
|
2012-05-29 17:57:58 -04:00
|
|
|
|
2012-08-07 12:22:09 -04:00
|
|
|
[testenv:cover]
|
2018-06-06 16:05:57 -04:00
|
|
|
basepython = python3
|
2018-07-02 13:20:05 +02:00
|
|
|
setenv =
|
|
|
|
PYTHON=coverage run --source ceilometer --parallel-mode
|
2015-08-07 18:32:21 +00:00
|
|
|
commands =
|
2018-07-02 13:20:05 +02:00
|
|
|
stestr run '{posargs}'
|
|
|
|
coverage combine
|
|
|
|
coverage html -d cover
|
|
|
|
coverage xml -o cover/coverage.xml
|
2012-06-07 18:00:49 -04:00
|
|
|
|
2012-05-29 17:57:58 -04:00
|
|
|
[testenv:pep8]
|
2018-06-06 16:05:57 -04:00
|
|
|
basepython = python3
|
2016-11-07 22:24:04 +01:00
|
|
|
deps = hacking<0.13,>=0.12
|
2017-12-12 16:07:52 +07:00
|
|
|
doc8
|
2013-02-04 10:39:35 -04:00
|
|
|
commands =
|
2013-06-12 22:59:27 +02:00
|
|
|
flake8
|
2017-12-12 16:07:52 +07:00
|
|
|
doc8 {posargs}
|
2014-03-29 06:52:48 +01:00
|
|
|
# Check that .po and .pot files are valid:
|
|
|
|
bash -c "find ceilometer -type f -regex '.*\.pot?' -print0|xargs -0 -n 1 msgfmt --check-format -o /dev/null"
|
2012-10-12 11:20:53 +02:00
|
|
|
|
2015-11-10 07:53:29 -05:00
|
|
|
[testenv:releasenotes]
|
2018-06-06 16:05:57 -04:00
|
|
|
basepython = python3
|
2017-11-20 09:37:19 -05:00
|
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
2015-11-10 07:53:29 -05:00
|
|
|
|
2014-04-18 13:11:15 +02:00
|
|
|
[testenv:genconfig]
|
2018-06-06 16:05:57 -04:00
|
|
|
basepython = python3
|
2015-10-20 17:24:55 +08:00
|
|
|
commands = oslo-config-generator --config-file=etc/ceilometer/ceilometer-config-generator.conf
|
2014-04-18 13:11:15 +02:00
|
|
|
|
2013-03-08 16:08:39 -05:00
|
|
|
[testenv:docs]
|
2018-06-06 16:05:57 -04:00
|
|
|
basepython = python3
|
2013-03-08 16:08:39 -05:00
|
|
|
commands = python setup.py build_sphinx
|
2015-03-26 16:58:09 +00:00
|
|
|
setenv = PYTHONHASHSEED=0
|
2013-03-08 16:08:39 -05:00
|
|
|
|
2012-10-12 11:20:53 +02:00
|
|
|
[testenv:venv]
|
2018-06-06 16:05:57 -04:00
|
|
|
basepython = python3
|
2014-05-30 13:52:31 +02:00
|
|
|
commands = {posargs}
|
2015-03-26 16:58:09 +00:00
|
|
|
setenv = PYTHONHASHSEED=0
|
2012-11-19 17:49:35 +01:00
|
|
|
|
2017-12-12 16:07:52 +07:00
|
|
|
[doc8]
|
|
|
|
ignore = D000
|
|
|
|
ignore-path = .venv,.git,.tox,*ceilometer/locale*,*lib/python*,ceilometer.egg*,doc/build,doc/source/api,releasenotes/*
|
|
|
|
|
2013-05-11 12:39:05 -04:00
|
|
|
[flake8]
|
2014-10-30 01:27:47 +08:00
|
|
|
ignore =
|
2016-06-15 18:10:08 +02:00
|
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,install-guide
|
2013-05-11 12:39:05 -04:00
|
|
|
show-source = True
|
2014-04-25 16:18:24 +04:00
|
|
|
|
|
|
|
[hacking]
|
|
|
|
import_exceptions =
|
2014-11-30 17:25:16 +08:00
|
|
|
ceilometer.i18n
|
2016-02-18 23:19:41 -02:00
|
|
|
local-check-factory = ceilometer.hacking.checks.factory
|