[Python-modules-commits] r22880 - in packages/python-dbusmock/trunk/debian (rules)

mpitt at users.alioth.debian.org mpitt at users.alioth.debian.org
Sat Nov 3 17:06:45 UTC 2012


    Date: Saturday, November 3, 2012 @ 17:06:44
  Author: mpitt
Revision: 22880

debian/rules: Run build and tests for all supported python3 versions as well

Modified:
  packages/python-dbusmock/trunk/debian/rules

Modified: packages/python-dbusmock/trunk/debian/rules
===================================================================
--- packages/python-dbusmock/trunk/debian/rules	2012-11-03 17:00:29 UTC (rev 22879)
+++ packages/python-dbusmock/trunk/debian/rules	2012-11-03 17:06:44 UTC (rev 22880)
@@ -9,7 +9,9 @@
 	rm -rf build
 
 override_dh_auto_build:
-	python3 setup.py build
+	set -ex; for python in $(shell py3versions -r); do \
+	    $$python setup.py build; \
+	done
 
 override_dh_auto_install:
 	set -ex; for python in $(shell py3versions -r); do \
@@ -18,7 +20,10 @@
 
 override_dh_auto_test:
 ifeq (, $(findstring nocheck, $(DEB_BUILD_OPTIONS)))
-	./setup.py test
+	set -ex; for python in $(shell py3versions -r); do \
+            echo "======== Running tests with $$python ==========="; \
+	    $$python ./setup.py test; \
+	done
 endif
 
 override_dh_compress:




More information about the Python-modules-commits mailing list