[Python-modules-commits] [django-prometheus] 05/10: Also run the end2end test

Christopher Baines cbaines-guest at moszumanska.debian.org
Sun Feb 28 01:59:57 UTC 2016


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

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

commit ed95952d431cc27b18175e63b0dcebf74163956b
Author: Christopher Baines <mail at cbaines.net>
Date:   Sun Feb 28 00:28:01 2016 +0000

    Also run the end2end test
---
 debian/control |  2 ++
 debian/rules   | 10 ++++++++++
 2 files changed, 12 insertions(+)

diff --git a/debian/control b/debian/control
index b9d0827..30be278 100644
--- a/debian/control
+++ b/debian/control
@@ -10,6 +10,8 @@ Build-Depends: debhelper (>= 9),
                python3-all,
                python-prometheus-client,
                python3-prometheus-client,
+               python-django,
+               python3-django,
 Standards-Version: 3.9.7
 Homepage: http://github.com/korfuri/django-prometheus
 
diff --git a/debian/rules b/debian/rules
index 39de202..3123297 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,8 +1,18 @@
 #!/usr/bin/make -f
 
+PYTHONS:=$(shell pyversions -vr)
+PYTHON3S:=$(shell py3versions -vr)
+
 # This file was automatically generated by stdeb 0.8.5 at
 # Sat, 27 Feb 2016 16:03:34 +0000
 export PYBUILD_NAME=django-prometheus
 %:
 	dh $@ --with python2,python3 --buildsystem=pybuild
 
+override_dh_auto_test:
+ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
+	dh_auto_test
+	set -ex ; for i in $(PYTHONS) $(PYTHON3S) ; do \
+		PYTHONPATH=. python$$i ./tests/end2end/manage.py test --verbosity=2 ; \
+	done
+endif

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



More information about the Python-modules-commits mailing list