[Python-modules-commits] [python-django-tagging] 12/15: Run the tests against all available python versions

Christopher Baines cbaines-guest at moszumanska.debian.org
Wed May 11 11:05:28 UTC 2016


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

cbaines-guest pushed a commit to branch master
in repository python-django-tagging.

commit 6e03b5711c5c1105d51b96179fdf2b3b3840d994
Author: Christopher Baines <mail at cbaines.net>
Date:   Wed May 11 11:28:56 2016 +0100

    Run the tests against all available python versions
---
 debian/rules | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 45a2bec..f5f2ae3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,4 +6,11 @@ export PYBUILD_NAME=python-django-tagging
 	dh $@ --with python2 --buildsystem=pybuild
 
 override_dh_auto_test:
-	PYTHONPATH=. DJANGO_SETTINGS_MODULE=tagging.tests.settings python /usr/bin/django-admin test
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+	set -e;
+	for python in $$(pyversions -s) $$(py3versions -s); do \
+		echo "——— Running tests with $$python ———"; \
+		PYTHONPATH=. DJANGO_SETTINGS_MODULE=tagging.tests.settings \
+		$$python /usr/bin/django-admin test --verbosity=2; \
+	done
+endif

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



More information about the Python-modules-commits mailing list