[Python-modules-commits] [authres] 05/06: Run tests for all supported python and python3 versions during build

Scott Kitterman kitterman at moszumanska.debian.org
Sat Jul 15 20:37:07 UTC 2017


This is an automated email from the git hooks/post-receive script.

kitterman pushed a commit to branch debian/master
in repository authres.

commit 9c1849c42f902b2d27c39580ed45a31d09f33e7e
Author: Scott Kitterman <scott at kitterman.com>
Date:   Sat Jul 15 16:35:35 2017 -0400

    Run tests for all supported python and python3 versions during build
---
 debian/changelog | 3 ++-
 debian/rules     | 8 ++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 872c24c..2ef5d7e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,8 +3,9 @@ authres (1.0.0-1) unstable; urgency=medium
   * Update debian/watch to only download the tarball
   * New upstream release
   * Bump standards version to 4.0.0 without further change
+  * Run tests for all supported python and python3 versions during build
 
- -- Scott Kitterman <scott at kitterman.com>  Sat, 15 Jul 2017 15:56:33 -0400
+ -- Scott Kitterman <scott at kitterman.com>  Sat, 15 Jul 2017 16:11:44 -0400
 
 authres (0.900-1) unstable; urgency=medium
 
diff --git a/debian/rules b/debian/rules
index ae81eae..4f7ebae 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,8 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
+pythons := $(shell py3versions -sv) $(shell pyversions -sv)
+
 %:
 	dh $@ --with python2,python3 --buildsystem=pybuild
 
@@ -9,3 +11,9 @@ override_dh_auto_clean:
 	rm -rf build
 	rm -rf .pybuild
 	dh_clean
+
+override_dh_auto_test:
+	set -e && for i in $(pythons); do \
+	    python$$i -m authres ; \
+	    echo "Tested authres with python $$i" ; \
+	done

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/authres.git



More information about the Python-modules-commits mailing list