~yade-dev/yade/0.80

« back to all changes in this revision

Viewing changes to scripts/pbuilder-test-distributions.sh

  • Committer: Anton Gladky
  • Date: 2012-05-02 21:50:42 UTC
  • Revision ID: gladky.anton@gmail.com-20120502215042-v1fa9r65usqe7kfk
0.80.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# grab latest trunk, try building packages for various distributions
 
3
# see http://yade.wikia.com/wiki/DebianPackages for configuration of the pbuilder environment
 
4
#
 
5
set -x
 
6
TMP=/tmp/pbuild-yade-$$
 
7
mkdir $TMP
 
8
cd $TMP
 
9
bzr checkout --lightweight lp:yade trunk
 
10
cd trunk; scripts/debian-prep jaunty; cd .. # distro not important here
 
11
dpkg-source -b -I trunk
 
12
DSC=yade-`cat trunk/VERSION`_1.dsc
 
13
for DIST in lenny squeeze hardy jaunty karmic; do
 
14
        echo ============================================= TESTING $DIST ===================================
 
15
        echo ===============================================================================================
 
16
        BASETGZ=/var/cache/pbuilder/$DIST.tgz
 
17
        sudo pbuilder --build --basetgz $BASETGZ --debbuildopts "-j5 -Zlzma" $DSC  || FAILED="$FAILED $DIST"
 
18
done
 
19
rm -rf $TMP
 
20
if [ '$FAILED' ]; then echo "***************** Build failed for $FAILED"; exit 1; fi