Add the oslo.config entry point so that these options can be discovered by oslo-config-generator. Add a simple tox env to generate a sample config file with the available options. This file may be placed in /etc/nova/conf.d to inject these options into the nova services. Change-Id: I05b564418f3b9334e6a8033b52f165b8bab2eabf Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
51 lines
1.2 KiB
INI
51 lines
1.2 KiB
INI
[tox]
|
|
envlist = py3,pep8
|
|
minversion = 3.18.0
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
allowlist_externals =
|
|
{toxinidir}/tools/tox_install.sh
|
|
rm
|
|
install_command = {toxinidir}/tools/tox_install.sh {env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages}
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
EVENTLET_NO_GREENDNS=yes
|
|
PYTHONHASHSEED=0
|
|
commands =
|
|
stestr run --slowest {posargs}
|
|
sitepackages = False
|
|
|
|
[testenv:cover]
|
|
setenv =
|
|
PYTHON=coverage run --source blazarnova --parallel-mode
|
|
commands =
|
|
stestr run '{posargs}'
|
|
coverage combine
|
|
coverage html -d cover
|
|
coverage xml -o cover/coverage.xml
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 {posargs}
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:genconfig]
|
|
commands = oslo-config-generator --config-file=etc/blazar-nova-config-generator.conf
|
|
|
|
[flake8]
|
|
show-source = true
|
|
builtins = _
|
|
exclude = .venv,.git,.tmp,.tox,dist,doc,*lib/python*,*egg,tools
|
|
|
|
[testenv:releasenotes]
|
|
install_command = pip install {opts} {packages}
|
|
deps =
|
|
-r{toxinidir}/doc/requirements.txt
|
|
commands =
|
|
rm -rf releasenotes/build
|
|
sphinx-build -W --keep-going -b html -j auto releasenotes/source releasenotes/build/html
|