2 # this script is managed under subversion at
3 # http://svn.one-lab.org/infrastructure/scripts/all-builds.sh
4 # it is triggered every night at 0:05 french time on build.one-lab.org aka blitz.inria.fr
10 echo "In manual mode you should export either of these"
11 echo "PLDISTROS FCDISTROS BITS RETRY TEST DRY_RUN"
15 [[ -n "$@" ]] && usage
17 # tuned for allowing manual re-runs, mostly for tests
19 DEFAULT_PLDISTROS="planetlab onelab"
20 DEFAULT_FCDISTROS="f8"
23 # export any of these to override - this is for manual use only
24 if [ -z "$PLDISTROS" ] ; then PLDISTROS=$DEFAULT_PLDISTROS ; else manual=true ; fi
25 if [ -z "$FCDISTROS" ] ; then FCDISTROS=$DEFAULT_FCDISTROS ; else manual=true ; fi
26 if [ -z "$BITS" ] ; then BITS=$DEFAULT_BITS ; else manual=true ; fi
27 [ -n "$RETRY" ] && { extra_option="$extra_option -o" ; manual=true ; }
28 [ -n "$TEST" ] && { extra_option="$extra_option -T" ; manual=true ; }
29 [ -n "$DRY_RUN" ] && { manual=true ; }
32 [ -n "$manual" ] && echo "$@"
33 if [ -n "$DRY_RUN" ] ; then
34 echo "dry-run: skipped"
40 for d in $PLDISTROS ; do
41 for f in $FCDISTROS ; do
44 command="/root/bin/vbuild-nightly.sh -m onelab-build@one-lab.org \
47 -b @DATE@--${d}.4.2--${f}-${bits} $extra_option"
53 [ -n "$manual" ] && { echo 'manual mode : bailing out' ; exit 0 ; }
55 # raw - std planetlab x f8 x 32bits for deploying on alpha nodes
58 command="/root/bin/vbuild-nightly.sh -m onelab-build@one-lab.org -p $p -b @DATE@--trunk${bits}"
62 # the following gets skipped in any manual mode
63 # centos5 : for both archs, make the vserver rpms
67 command="/root/bin/vbuild-nightly.sh -m onelab-build@one-lab.org \
68 -f centos5 -p $p -d $d \
69 -b @DATE@--trunk-c5vs-${bits} \