File: pbuilder-test-distributions.sh

package info (click to toggle)
yade 2019.01a-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 16,568 kB
  • sloc: cpp: 56,330; python: 30,148; ansic: 6,463; sh: 123; makefile: 56
file content (20 lines) | stat: -rw-r--r-- 886 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
# grab latest trunk, try building packages for various distributions
# see http://yade.wikia.com/wiki/DebianPackages for configuration of the pbuilder environment
#
set -x
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 lenny squeeze hardy jaunty karmic; do
	echo ============================================= TESTING $DIST ===================================
	echo ===============================================================================================
	BASETGZ=/var/cache/pbuilder/$DIST.tgz
	sudo pbuilder --build --basetgz $BASETGZ --debbuildopts "-j5 -Zlzma" $DSC  || FAILED="$FAILED $DIST"
done
rm -rf $TMP
if [ '$FAILED' ]; then echo "***************** Build failed for $FAILED"; exit 1; fi