Add tox genconfig target
It's easy to get a false config generated using a local (non venv) environment to run generate_sample.sh, so this makes it easier to run the config generator in a venv for consistent results which should match what's done in the gate. Possibly in future we could consider removing the static conf.sample like some other projects have already done and just documenting this as the method to generate the sample. Change-Id: I92964d75e0adf73eb0935c2052adf344f15bfe95
This commit is contained in:
parent
4a8cb4b204
commit
1d961fcfd5
4
tox.ini
4
tox.ini
@ -41,6 +41,10 @@ deps = -r{toxinidir}/requirements.txt
|
|||||||
sphinxcontrib-httpdomain
|
sphinxcontrib-httpdomain
|
||||||
commands = python setup.py build_sphinx
|
commands = python setup.py build_sphinx
|
||||||
|
|
||||||
|
[testenv:genconfig]
|
||||||
|
commands =
|
||||||
|
bash tools/config/generate_sample.sh -b . -p heat -o etc/heat
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
# H302 import only modules.'bla..' does not import a module
|
# H302 import only modules.'bla..' does not import a module
|
||||||
# H404 multi line docstring should start with a summary
|
# H404 multi line docstring should start with a summary
|
||||||
|
Loading…
Reference in New Issue
Block a user