yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #01750
[Branch ~yade-dev/yade/trunk] Rev 1706: Run tests in debian package (not failing if the test crashes, though, for now)
------------------------------------------------------------
revno: 1706
committer: Václav Šmilauer <vaclav@flux>
branch nick: trunk
timestamp: Wed 2009-08-19 16:06:32 +0200
message:
Run tests in debian package (not failing if the test crashes, though, for now)
added:
scripts/pbuilder-test-distributions.sh
modified:
debian/rules
--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription.
=== modified file 'debian/rules'
--- debian/rules 2009-08-19 10:48:06 +0000
+++ debian/rules 2009-08-19 14:06:32 +0000
@@ -75,7 +75,8 @@
# We have nothing to do by default.
# Build architecture-dependent files here.
-binary-arch: build install
+## check added by eudoxos
+binary-arch: build install check
dh_testdir
dh_testroot
dh_installchangelogs ChangeLog
=== added file 'scripts/pbuilder-test-distributions.sh'
--- scripts/pbuilder-test-distributions.sh 1970-01-01 00:00:00 +0000
+++ scripts/pbuilder-test-distributions.sh 2009-08-19 14:06:32 +0000
@@ -0,0 +1,17 @@
+#
+# grab latest trunk, try building packages for various distributions
+# see http://yade.wikia.com/wiki/DebianPackages for configuration of the pbuilder environment
+#
+set -x -e
+TMP=/tmp/pbuild-yade-$$
+mkdir $TMP
+cd $TMP
+bzr checkout --lightweight lp:yade trunk
+cd trunk; scripts/debian-prep jaunty; cd .. # distro not important here
+dpkg-source -b -I trunk
+DSC=yade-`cat trunk/VERSION`_1.dsc
+for DIST in hardy jaunty karmic lenny squeeze; do
+ BASETGZ=/var/cache/pbuilder/$DIST.tgz
+ sudo pbuilder --build --basetgz $BASETGZ --debbuildopts "-j5 -Zlzma" $DSC
+done
+rm -rf $TMP