rules 706 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/make -f
  2. %:
  3. dh $@
  4. ifneq ($(JENKINS_EXPORTS_DIR),)
  5. PYBUILD_EXTRA_ARGS = --junit-xml=$(JENKINS_EXPORTS_DIR)/test-results/tests.xml
  6. endif
  7. override_dh_auto_test:
  8. ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
  9. ifneq ($(JENKINS_EXPORTS_DIR),)
  10. mkdir -pv $(JENKINS_EXPORTS_DIR)/test-results
  11. endif
  12. mkdir -p debian/test-gnupghome
  13. make -C tests/fixtures/packages
  14. GNUPGHOME=$$(pwd)/debian/test-gnupghome py.test -v daklib tests $(PYBUILD_EXTRA_ARGS)
  15. ./integration-tests/run-tests
  16. endif
  17. # Replace with "debian/test-gnupghome/" in d/clean once
  18. # debhelper (>= 9.20151116) can be used for dak
  19. override_dh_auto_clean:
  20. make -C tests/fixtures/packages clean
  21. rm -fr debian/test-gnupghome
  22. dh_auto_clean