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:
Steven Hardy 2014-10-14 21:17:52 +01:00
parent 4a8cb4b204
commit 1d961fcfd5
1 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,10 @@ deps = -r{toxinidir}/requirements.txt
sphinxcontrib-httpdomain
commands = python setup.py build_sphinx
[testenv:genconfig]
commands =
bash tools/config/generate_sample.sh -b . -p heat -o etc/heat
[flake8]
# H302 import only modules.'bla..' does not import a module
# H404 multi line docstring should start with a summary