5 include /usr/share/openstack-pkg-tools/pkgos.make
7 export OSLO_PACKAGE_VERSION=$(VERSION)
14 rm -rf .testrepository
15 rm -rf ceilometer.egg-info
16 rm -f debian/ceilometer-common.config debian/ceilometer-common.postinst debian/ceilometer-api.config debian/ceilometer-api.postinst
21 # Manage ceilometer.conf
22 PYTHONPATH=. bash tools/config/generate_sample.sh -b . -p ceilometer -o $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common
23 mv $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common/ceilometer.conf
24 chmod 0644 $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common/ceilometer.conf
25 sed -i 's|#connection=|connection=mongodb://localhost:27017/ceilometer|' $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common/ceilometer.conf
27 override_dh_auto_build:
29 /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func ceilometer-common.config
30 /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func ceilometer-common.postinst
31 /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func ceilometer-api.config
32 /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func ceilometer-api.postinst
34 override_dh_auto_clean:
36 rm -rf debian/*.upstart
37 rm -rf debian/ceilometer-common.postinst
38 find . -iname '*.pyc' -delete
40 override_dh_auto_test:
41 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
42 rm -rf .testrepository
45 TEMP_REZ=`mktemp -t` && \
46 bash -x ./setup-test-env.sh testr run --subunit 'tests\.(?!.*test_bin.*)' | tee $$TEMP_REZ | subunit2pyunit || true ; \
47 cat $$TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats || true ; \