tox: generate config file on test run
We already do that for Aodh and Gnocchi, and that makes sure we don't break the config generator when committing new things. Change-Id: I049f86dc85d7d4c365cdd622cefd4025ae0cebc3
This commit is contained in:
parent
e4189bf41d
commit
c6f49a6a8b
10
generate-config-file.sh
Executable file
10
generate-config-file.sh
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
oslo-config-generator --output-file etc/ceilometer/ceilometer.conf \
|
||||||
|
--namespace ceilometer \
|
||||||
|
--namespace oslo.concurrency \
|
||||||
|
--namespace oslo.db \
|
||||||
|
--namespace oslo.log \
|
||||||
|
--namespace oslo.messaging \
|
||||||
|
--namespace oslo.policy \
|
||||||
|
--namespace oslo.service.service \
|
||||||
|
--namespace keystonemiddleware.auth_token
|
12
tox.ini
12
tox.ini
@ -13,6 +13,7 @@ setenv = VIRTUAL_ENV={envdir}
|
|||||||
OS_TEST_PATH=ceilometer/tests/unit
|
OS_TEST_PATH=ceilometer/tests/unit
|
||||||
commands =
|
commands =
|
||||||
python setup.py testr --slowest --testr-args="{posargs}"
|
python setup.py testr --slowest --testr-args="{posargs}"
|
||||||
|
{toxinidir}/generate-config-file.sh
|
||||||
whitelist_externals = bash
|
whitelist_externals = bash
|
||||||
|
|
||||||
# TODO(ityaptin): With separation tests to unit and functional folders we need
|
# TODO(ityaptin): With separation tests to unit and functional folders we need
|
||||||
@ -93,16 +94,7 @@ commands =
|
|||||||
bash -c "find ceilometer -type f -regex '.*\.pot?' -print0|xargs -0 -n 1 msgfmt --check-format -o /dev/null"
|
bash -c "find ceilometer -type f -regex '.*\.pot?' -print0|xargs -0 -n 1 msgfmt --check-format -o /dev/null"
|
||||||
|
|
||||||
[testenv:genconfig]
|
[testenv:genconfig]
|
||||||
commands =
|
commands = {toxinidir}/generate-config-file.sh
|
||||||
oslo-config-generator --output-file etc/ceilometer/ceilometer.conf \
|
|
||||||
--namespace ceilometer \
|
|
||||||
--namespace oslo.concurrency \
|
|
||||||
--namespace oslo.db \
|
|
||||||
--namespace oslo.log \
|
|
||||||
--namespace oslo.messaging \
|
|
||||||
--namespace oslo.policy \
|
|
||||||
--namespace oslo.service.service \
|
|
||||||
--namespace keystonemiddleware.auth_token
|
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
commands = python setup.py build_sphinx
|
commands = python setup.py build_sphinx
|
||||||
|
Loading…
Reference in New Issue
Block a user