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
20 install -D -m 0644 $(CURDIR)/etc/ceilometer/ceilometer.conf.sample $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common/ceilometer.conf
22 override_dh_auto_build:
24 /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func ceilometer-common.config
25 /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func ceilometer-common.postinst
26 /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func ceilometer-api.config
27 /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func ceilometer-api.postinst
29 override_dh_auto_clean:
31 rm -rf debian/*.upstart
32 rm -rf debian/ceilometer-common.postinst
33 find . -iname '*.pyc' -delete
35 override_dh_auto_test:
36 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
37 rm -rf .testrepository
40 TEMP_REZ=`mktemp -t` && \
41 bash -x ./setup-test-env.sh testr run --subunit 'tests\.(?!.*test_bin.*)' | tee $$TEMP_REZ | subunit2pyunit || true ; \
42 cat $$TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats || true ; \