[Python-modules-commits] r31780 - in packages/python-gitdb/trunk/debian (3 files)

yoh at users.alioth.debian.org yoh at users.alioth.debian.org
Fri Feb 6 03:07:55 UTC 2015


    Date: Friday, February 6, 2015 @ 03:07:54
  Author: yoh
Revision: 31780

debian/{rules,control} - enable build-time testing although ignore failures

Modified:
  packages/python-gitdb/trunk/debian/changelog
  packages/python-gitdb/trunk/debian/control
  packages/python-gitdb/trunk/debian/rules

Modified: packages/python-gitdb/trunk/debian/changelog
===================================================================
--- packages/python-gitdb/trunk/debian/changelog	2015-02-06 03:07:09 UTC (rev 31779)
+++ packages/python-gitdb/trunk/debian/changelog	2015-02-06 03:07:54 UTC (rev 31780)
@@ -1,8 +1,11 @@
 python-gitdb (0.6.3-1) experimental; urgency=medium
 
   * New upstream release
+  * debian/{rules,control}
+    - enable build-time testing although ignore failures
+    - add git to build-depends to initiate a test repository
 
- -- Yaroslav Halchenko <debian at onerussian.com>  Thu, 08 Jan 2015 09:17:03 -0500
+ -- Yaroslav Halchenko <debian at onerussian.com>  Thu, 08 Jan 2015 09:34:34 -0500
 
 python-gitdb (0.6.0-1) experimental; urgency=medium
 

Modified: packages/python-gitdb/trunk/debian/control
===================================================================
--- packages/python-gitdb/trunk/debian/control	2015-02-06 03:07:09 UTC (rev 31779)
+++ packages/python-gitdb/trunk/debian/control	2015-02-06 03:07:54 UTC (rev 31780)
@@ -6,6 +6,7 @@
 Build-Depends: debhelper (>= 8.0.0)
 	,python-all-dev
 	,python-setuptools
+	,git
 Standards-Version: 3.9.6
 Homepage: https://github.com/gitpython-developers/gitdb
 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-gitdb/trunk/

Modified: packages/python-gitdb/trunk/debian/rules
===================================================================
--- packages/python-gitdb/trunk/debian/rules	2015-02-06 03:07:09 UTC (rev 31779)
+++ packages/python-gitdb/trunk/debian/rules	2015-02-06 03:07:54 UTC (rev 31780)
@@ -11,3 +11,9 @@
 
 %:
 	dh $@  --with python2
+
+override_dh_auto_test:
+	mkdir TESTGITDB
+	cd TESTGITDB; git init; for c in 1 2 3; do echo $$c >| 1; git add 1; git commit -m "commit $$c"; done
+	GITDB_TEST_GIT_REPO_BASE=$(CURDIR)/TESTGITDB/.git nosetests -s -v gitdb/test || echo "Tests failed but continuing..."
+	rm -rf TESTGITDB




More information about the Python-modules-commits mailing list