summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Carrillo <ben@futeisha.org>2013-02-06 02:27:21 +0900
committerBen Carrillo <ben@futeisha.org>2013-02-06 02:27:21 +0900
commitfdcd93974c73c2c272a3ee3cef303a3c4a499c3e (patch)
tree82b2c921486292d2f8fb51b519591b81dbfd48ce
parentfbbecb243708a618a8d17d36bcb33eb5dc686fef (diff)
abourt build if tests fail
-rwxr-xr-xdebian/rules7
1 files changed, 6 insertions, 1 deletions
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; \