include /usr/share/openstack-pkg-tools/pkgos.make
+export OSLO_PACKAGE_VERSION=$(VERSION)
+
%:
dh $@ --with python2
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
override_dh_auto_build:
dh_auto_build
rm -rf debian/*.upstart
rm -rf debian/ceilometer-common.postinst
find . -iname '*.pyc' -delete
+
+ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
+override_dh_auto_test:
+ PYTHONPATH=. nosetests -P || true
+endif