X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=trusty%2Fdebian%2Frules;h=848ea8bb92771565b56aa5c1dd8488b680bd476a;hb=2d8da049d6891e0216ed1fdc8d7b0c441c3f9f55;hp=5cfd5d2668bd989fc70a07a88cfca1d32f07b444;hpb=6fd92683480f71c9e4896172ced6ba5daf41b3e8;p=openstack-build%2Fceilometer-build.git diff --git a/trusty/debian/rules b/trusty/debian/rules index 5cfd5d2..848ea8b 100755 --- a/trusty/debian/rules +++ b/trusty/debian/rules @@ -16,11 +16,14 @@ override_dh_clean: rm -f debian/ceilometer-common.config debian/ceilometer-common.postinst debian/ceilometer-api.config debian/ceilometer-api.postinst override_dh_install: - dh_install - install -D -m 0644 $(CURDIR)/etc/ceilometer/ceilometer.conf.sample $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common/ceilometer.conf - install -D -m 0644 $(CURDIR)/etc/ceilometer/policy.json $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common/policy.json - install -D -m 0644 $(CURDIR)/etc/ceilometer/sources.json $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common/sources.json - install -D -m 0644 $(CURDIR)/etc/ceilometer/pipeline.yaml $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common/pipeline.yaml + dh_install --fail-missing + + # Manage ceilometer.conf + mkdir -p $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common + PYTHONPATH=. bash tools/config/generate_sample.sh -b . -p ceilometer -o $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common + mv $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common/ceilometer.conf.sample $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common/ceilometer.conf + chmod 0644 $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common/ceilometer.conf + sed -i 's|#connection=|connection=mongodb://localhost:27017/ceilometer|' $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common/ceilometer.conf override_dh_auto_build: dh_auto_build @@ -37,12 +40,12 @@ override_dh_auto_clean: override_dh_auto_test: ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) - set -e && TEMP_REZ=`mktemp -t` && \ - rm -rf .testrepository ; \ - testr init ; \ + rm -rf .testrepository + testr init + set -e && \ + TEMP_REZ=`mktemp -t` && \ bash -x ./setup-test-env.sh testr run --subunit 'tests\.(?!.*test_bin.*)' | tee $$TEMP_REZ | subunit2pyunit || true ; \ cat $$TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats || true ; \ - rm -f $$TEMP_REZ - #./run-tests.sh || true - #PYTHONPATH=. nosetests -P || true + rm -f $$TEMP_REZ ; + testr slowest endif