patroni/debian/rules
Michael Banck b2e4df0651 * debian/tests/acceptance: Update to set locale and to run the tests as user
postgres if autopkgtest is invoked as root.
  * debian/tests/control: Run acceptance test first.
  * debian/rules (override_dh_auto_test): Do not run testsuite during build.
2017-09-23 09:04:11 +02:00

30 lines
600 B
Makefile
Executable file

#!/usr/bin/make -f
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
export READTHEDOCS=no
%:
dh $@ --with=python3 --buildsystem=pybuild
override_dh_auto_clean:
-dh_auto_clean
rm -rf docs/build
rm -rf .eggs .pybuild
override_dh_auto_build:
dh_auto_build
(cd docs; $(MAKE) html)
override_dh_auto_install:
dh_auto_install
tr -d '\r' < extras/startup-scripts/patroni > debian/patroni.init
cp extras/startup-scripts/patroni.service debian/
override_dh_installdocs:
dh_installdocs
dh_sphinxdoc /usr/share/doc/patroni/html
override_dh_auto_test:
# nothing to do here, see debian/tests/* instead