[med-svn] [python-avro] 05/07: Enable build-time testing for python2 package (which needs ant)

Afif Elghraoui afif-guest at moszumanska.debian.org
Sun Oct 18 07:03:34 UTC 2015


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

afif-guest pushed a commit to branch master
in repository python-avro.

commit c36770b95cdd20846bfa119b5967f0f12ff70495
Author: Afif Elghraoui <afif at ghraoui.name>
Date:   Sat Oct 17 18:23:41 2015 -0700

    Enable build-time testing for python2 package (which needs ant)
---
 debian/rules | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/debian/rules b/debian/rules
index d49e035..2d6f7e3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -43,3 +43,15 @@ override_dh_auto_configure:
 	dh_auto_configure                       \
 		--sourcedirectory=lang/py3      \
 		--package=python3-avro
+
+override_dh_auto_test:
+	PYBUILD_DISABLE_python3=1		\
+	PYBUILD_SYSTEM=custom			\
+	PYBUILD_TEST_ARGS="ant test"		\
+	dh_auto_test				\
+		--sourcedirectory=$(py2srcdir)	\
+		--package=python-avro
+	PYBUILD_DISABLE_python2=1               \
+	dh_auto_test                            \
+		--sourcedirectory=lang/py3      \
+		--package=python3-avro

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-avro.git



More information about the debian-med-commit mailing list