From 3b34b2626fa5e87fafb7cf326744927035794932 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Wed, 18 Apr 2012 08:14:40 +0200 Subject: Make building with DEB_BUILD_OPTIONS=nocheck skip all tests heavily based on a patch by Matthijs Kooijman --- debian/rules | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/rules b/debian/rules index 6360dffd..2c40befc 100755 --- a/debian/rules +++ b/debian/rules @@ -15,6 +15,7 @@ PYCHECKER_ARGS=-boptparse --no-override --no-shadowbuiltin dh $@ --with python2 override_dh_auto_test: +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) dh_auto_test export GIT_AUTHOR_NAME="Gbp Tests"; \ export GIT_AUTHOR_EMAIL=tests@example.com; \ @@ -25,6 +26,9 @@ override_dh_auto_test: PYTHONPATH=. pychecker $(PYCHECKER_ARGS) -q \ gbp gbp.scripts gbp.git gbp.deb +else + @echo "Checks disabled via DEB_BUILD_OPTIONS" +endif override_dh_auto_build: dh_auto_build -- cgit v1.2.3