35bd39da508006f0706664fffbf796b82beb61b1
[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 buzzcocks () { hostname | grep -q buzzcocks ; }
21
22 # for emanicslab
23 #liquid & /root/bin/lbuild-nightly.sh -f f20 -b @DATE@--f20-emanics nodemanager-GITPATH=git://git.onelab.eu/nodemanager.git@nodemanager-5.2-15 -i check-initscripts -i ssh-slice-again
24 #liquid & /root/bin/lbuild-nightly.sh -f f21 -b @DATE@--f21-emanics nodemanager-GITPATH=git://git.onelab.eu/nodemanager.git@nodemanager-5.2-15 -i check-initscripts 
25
26 buzzcocks && /root/bin/lbuild-nightly.sh -f f21 -b @DATE@--f21 -i check-initscripts &
27
28 # cannot build this one from within buzzcocks yet
29 liquid      && /root/bin/lbuild-nightly.sh -f f18 -b @DATE@--f18 &
30
31 [ -n "$SINGLE" ] && exit
32
33 buzzcocks && /root/bin/lbuild-nightly.sh -f f20 -b @DATE@--f20 -i check-initscripts &
34
35 # not sure this is still needed
36 #buzzcocks && /root/bin/lbuild-nightly.sh -f f21 -b @DATE@--f21-nois -c default -c no_initscript &
37 #buzzcocks && /root/bin/lbuild-nightly.sh -f f20 -b @DATE@--f20-nois -c default -c no_initscript &
38
39 # cannot build this one from within buzzcocks yet
40 # buzzcocks && /root/bin/lbuild-nightly.sh -f f18 -b @DATE@--f18 &
41
42 buzzcocks && /root/bin/lbuild-nightly.sh -f f14 -b @DATE@--f14 -d onelab &
43
44 exit
45
46 ########## oldies
47
48 #liquid    && /root/bin/lbuild-nightly.sh -f f14 -b @DATE@--f14 -d onelab
49 #liquid    && /root/bin/lbuild-nightly.sh -f f21 -b @DATE@--f21
50 #reed      && /root/bin/lbuild-nightly.sh -f f20 -b @DATE@--f20
51
52 ### sfa from branch
53 buzzcocks  && /root/bin/lbuild-nightly.sh sfa-GITPATH=git://git.onelab.eu/sfa.git@master tests-GITPATH=git://git.onelab.eu/tests.git@master -f f21 -b @DATE@--f21-sfa
54
55 ###  sfa + manifold + myslice
56 #liquid && /root/bin/lbuild-nightly.sh -d federation -P develdeb.pkgs -W http://debian.onelab.eu/ -f wheezy -b @DATE@--f10n-deb-w debian -B
57 #liquid && /root/bin/lbuild-nightly.sh -d federation -P develdeb.pkgs -W http://debian.onelab.eu/ -f jessie -b @DATE@--f10n-deb-j debian -B
58 #liquid && /root/bin/lbuild-nightly.sh -d federation -P develdeb.pkgs -W http://debian.onelab.eu/ -f saucy  -b @DATE@--f10n-ubu-s debian -B
59 #liquid && /root/bin/lbuild-nightly.sh -d federation -P develdeb.pkgs -W http://debian.onelab.eu/ -f trusty -b @DATE@--f10n-ubu-t debian -B
60 #liquid && /root/bin/lbuild-nightly.sh -d federation -P develdeb.pkgs -W http://debian.onelab.eu/ -f utopic -b @DATE@--f10n-ubu-u debian -B
61
62 ### 32bits build for the yum arch patch - do not forget to protect this within a call to linux32
63 #reed && linux32 /root/bin/lbuild-nightly.sh -f f14 -p linux32 -b @DATE@--f14-32 -d onelab
64
65 ########## probably obsolete
66
67 ### nodemanager for ubuntu - giving up for now
68 #velvet && /root/bin/lbuild-nightly.sh -d lxc -f trusty -P develdeb.pkgs -W http://debian.onelab.eu/ -b @DATE@--nm-ubu-t -B nodemanager-GITPATH=git://git.onelab.eu/nodemanager.git@master ALL=nodemanager debian
69  
70 ####################
71 # wextoolbox 
72 # bbn won't build so it's taken off that build -- see wexlxc.mk in wextoolbox (branch wexlxc)
73 #  f14
74 #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
75 # f16
76 # for now this is failing because the nodeimage plain (uncompressed) package is too big, cpio seems to have a 2Gb limit
77 #liquid && /root/bin/lbuild-nightly.sh -d wexlxc -f f18 -b @DATE@--wexlxc-f18-64 -c default -c bignode
78 # f18 - never tried yet
79
80 ####################
81 # build & test : f12 bootstrap : vserver-capable 2.6.32, util-vserver and yum, for a plain fedora 12 build or test box
82 #liquid && /root/bin/lbuild-nightly.sh -d f12 -f f12 -p linux32 -b @DATE@--f12-f12-32 -B
83 ### same software release but built on f14 - kernel excluded as, 
84 # for some reason, we have to use the one built on f12
85 #liquid && /root/bin/lbuild-nightly.sh -d f14 -f f14 -b @DATE@--f14-f14-64 -B