oops, -d, not -l
[infrastructure.git] / scripts / builds.sh
1 #!/bin/bash
2
3 # if run with -s (single) we only run one build per box
4 [ "$1" == "-s" ] && { shift; SINGLE=true; }
5
6 # the tests flavours available
7 # -B means no test
8 # -e step : mark a step as exclude (do not run it at all)
9 # -i step : mark a step as ignore (run it, but keep going if it fails)
10 # -c default for the tests setup is one myplc
11 # -c dual has two myplc's - pointing to each other AMs
12 # -c triangle has three - ditto
13 # -c sfamesh makes them point to SMs
14 # -c bignode is to allow one hour for the node to install
15 # -c config -c sfadebug - turn on sfa debug
16 # -y pg testing only the pg rspecs
17
18 function liquid () { hostname | grep -q liquid ; }
19 function reed () { hostname | grep -q reed ; }
20 function velvet () { hostname | grep -q velvet ; }
21
22 ### have each box run one main distro build 
23 liquid && /root/bin/lbuild-nightly.sh -f f14 -b @DATE@--f14 -d onelab
24 reed   && /root/bin/lbuild-nightly.sh -f f18 -b @DATE@--l18 -c default -c no_omf
25 velvet && /root/bin/lbuild-nightly.sh -f f20 -b @DATE@--l20 -c default -c no_omf
26
27 [ -n "$SINGLE" ] && exit
28
29 ### 
30 liquid && /root/bin/lbuild-nightly.sh -f f18 -b @DATE@--sfa3 -c default -c sfadebug sfa-GITPATH=git://git.onelab.eu/sfa.git@geni-v3
31
32 ### focus on building again, so only wheezy for now
33 reed   && /root/bin/lbuild-nightly.sh -d myslice -P develdeb.pkgs -W http://debian.onelab.eu/ -f wheezy -b @DATE@-manifold-w ALL=manifold manifold-debian -B
34 velvet && /root/bin/lbuild-nightly.sh -d myslice -P develdeb.pkgs -W http://debian.onelab.eu/ -f wheezy -b @DATE@-myslice-w  ALL=myslice  myslice-debian  -B
35 # both in one build as myslice requires manifold
36 reed   && /root/bin/lbuild-nightly.sh -d myslice -P develdeb.pkgs -W http://debian.onelab.eu/ -f wheezy -b @DATE@-mm-w manifold-debian myslice-debian -B
37 #reed   && /root/bin/lbuild-nightly.sh -P develdeb.pkgs -W http://debian.onelab.eu/ -f jessie -b @DATE@-manifold-j ALL=manifold manifold-debian -B
38 #velvet && /root/bin/lbuild-nightly.sh -P develdeb.pkgs -W http://debian.onelab.eu/ -f jessie -b @DATE@-myslice-j  ALL=myslice  myslice-debian  -B
39 #reed   && /root/bin/lbuild-nightly.sh -P develdeb.pkgs -W http://debian.onelab.eu/ -f saucy  -b @DATE@-manifold-s ALL=manifold manifold-debian -B
40 #velvet && /root/bin/lbuild-nightly.sh -P develdeb.pkgs -W http://debian.onelab.eu/ -f saucy  -b @DATE@-myslice-s  ALL=myslice  myslice-debian  -B
41  
42 ########################################
43 # debians  & ubuntus for sfa
44 liquid && /root/bin/lbuild-nightly.sh -P develdeb.pkgs -W http://debian.onelab.eu/ -f raring sfa-GITPATH=git://git.onelab.eu/sfa.git@geni-v3 -b @DATE@-sfa3-r ALL=sfa sfa-debian -B
45 #reed   && /root/bin/lbuild-nightly.sh -P develdeb.pkgs -W http://debian.onelab.eu/ -f squeeze sfa-GITPATH=git://git.onelab.eu/sfa.git@geni-v2 -b @DATE@-sfasqueeze ALL=sfa sfa-debian -B
46 ###summer-mode###reed   && /root/bin/lbuild-nightly.sh -P develdeb.pkgs -W http://debian.onelab.eu/ -f wheezy sfa-GITPATH=git://git.onelab.eu/sfa.git@geni-v2 -b @DATE@-sfawheezy ALL=sfa sfa-debian  -B
47 #reed   && /root/bin/lbuild-nightly.sh -P develdeb.pkgs -W http://debian.onelab.eu/ -f oneiric sfa-GITPATH=git://git.onelab.eu/sfa.git@geni-v2 -b @DATE@-sfaoneiric ALL=sfa sfa-debian -B
48 #reed   && /root/bin/lbuild-nightly.sh -P develdeb.pkgs -W http://debian.onelab.eu/ -f precise sfa-GITPATH=git://git.onelab.eu/sfa.git@geni-v2 -b @DATE@-sfaprecise ALL=sfa sfa-debian -B
49 ###summer-mode###reed   && /root/bin/lbuild-nightly.sh -P develdeb.pkgs -W http://debian.onelab.eu/ -f quantal sfa-GITPATH=git://git.onelab.eu/sfa.git@geni-v2 -b @DATE@-sfaquantal ALL=sfa sfa-debian -B
50
51 ###summer-mode###reed   && /root/bin/lbuild-nightly.sh -P develdeb.pkgs -W http://debian.onelab.eu/ -f quantal sfa-GITPATH=git://git.onelab.eu/sfa.git@geni-v3 -b @DATE@-sfa3quantal ALL=sfa sfa-debian -B
52
53 ####################
54 # wextoolbox 
55 # bbn won't build so it's taken off that build -- see wexlxc.mk in wextoolbox (branch wexlxc)
56 #  f14
57 #liquid && /root/bin/lbuild-nightly.sh -d wextoolbox -p linux32 -f f14 -b @DATE@--wtx-f14-32 -e check_system_slice -c default -c bignode
58 # f16
59 # for now this is failing because the nodeimage plain (uncompressed) package is too big, cpio seems to have a 2Gb limit
60 #liquid && /root/bin/lbuild-nightly.sh -d wexlxc -f f18 -b @DATE@--wexlxc-f18-64 -c default -c bignode
61 # f18 - never tried yet
62
63 ###### senslab - not much to test 
64 # sfa-GITPATH=git://git.f-lab.fr/sfa.git@senslab2
65
66 ####################
67 # build & test : f12 bootstrap : vserver-capable 2.6.32, util-vserver and yum, for a plain fedora 12 build or test box
68 #liquid && /root/bin/lbuild-nightly.sh -d f12 -f f12 -p linux32 -b @DATE@--f12-f12-32 -B
69 ### same software release but built on f14 - kernel excluded as, 
70 # for some reason, we have to use the one built on f12
71 #liquid && /root/bin/lbuild-nightly.sh -d f14 -f f14 -b @DATE@--f14-f14-64 -B
72