X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=trusty%2Fdebian%2Frules;h=8dd06ae5e60c5b31d8d95262b7d9a962f868c347;hb=refs%2Fchanges%2F55%2F9955%2F7;hp=a6047da044c9538e169a0069580595a1a3f8756b;hpb=9ed9a8077046102d4b1ac5edc630b266fe7063d8;p=openstack-build%2Fceilometer-build.git diff --git a/trusty/debian/rules b/trusty/debian/rules index a6047da..8dd06ae 100755 --- a/trusty/debian/rules +++ b/trusty/debian/rules @@ -8,29 +8,7 @@ export HOME="$(CURDIR)/debian/test" include /usr/share/openstack-pkg-tools/pkgos.make %: - dh $@ --with python2,systemd - -get-orig-source: - uscan --verbose --force-download --rename --destdir=../build-area - -ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) -override_dh_auto_test: - rm -rf .testrepository - testr init && \ - set -e && \ - TEMP_REZ=`mktemp -t` && \ - testr run --subunit 'tests\.(?!.*test_bin.*)(?!.*test_gabbi.*)' | tee $$TEMP_REZ | subunit2pyunit; \ - rm -f $$TEMP_REZ -endif - -override_dh_install: - oslo-config-generator --output-file etc/ceilometer/ceilometer.conf.sample \ - --namespace ceilometer \ - --namespace oslo.db \ - --namespace oslo.messaging \ - --namespace keystonemiddleware.auth_token - cp etc/ceilometer/ceilometer.conf.sample etc/ceilometer/ceilometer.conf - dh_install --fail-missing + dh $@ --with python2,systemd,sphinxdoc override_dh_auto_clean: dh_auto_clean @@ -38,3 +16,11 @@ override_dh_auto_clean: rm -rf .testrepository rm -rf pbr*.egg rm -f debian/*.init debian/*.service debian/*.upstart + +override_dh_sphinxdoc: +ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS))) + PYTHONPATH=. sphinx-build -b html doc/source $(CURDIR)/debian/ceilometer-doc/usr/share/doc/ceilometer-doc/html + mkdir -p $(CURDIR)/debian/ceilometer-doc/usr/share/doc/ceilometer-doc/html/_static + touch $(CURDIR)/debian/ceilometer-doc/usr/share/doc/ceilometer-doc/html/_static/toggle.js + dh_sphinxdoc -O--buildsystem=python_distutils +endif