From fdcd93974c73c2c272a3ee3cef303a3c4a499c3e Mon Sep 17 00:00:00 2001 From: Ben Carrillo Date: Wed, 6 Feb 2013 02:27:21 +0900 Subject: abourt build if tests fail --- debian/rules | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index f3eb1a9..714fc88 100755 --- a/debian/rules +++ b/debian/rules @@ -1,15 +1,20 @@ #!/usr/bin/make -f +# Get the supported Python versions PYVERS := $(shell pyversions -r) +# Get the supported Python3 versions PY3VERS := $(shell py3versions -r) %: dh $@ --with python2,python3 --buildsystem=python_distutils override_dh_auto_test: +ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) + set -ex; \ for python in $(PYVERS) $(PY3VERS); do \ - $$python test.py; \ + $$python test.py Basic ;\ done +endif override_dh_auto_build: set -ex; \ -- cgit v1.2.3