fix
[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@--f18 
25 velvet && /root/bin/lbuild-nightly.sh -f f20 -b @DATE@--f20 
26
27 [ -n "$SINGLE" ] && exit
28
29 ### 
30 # bm on the ansible branch
31 reed   && /root/bin/lbuild-nightly.sh bootmanager-GITPATH=git://git.onelab.eu/bootmanager.git@ansible -f f18 -b @DATE@--f18-ansbl
32 # sfa from branch
33 velvet && /root/bin/lbuild-nightly.sh sfa-GITPATH=git://git.onelab.eu/sfa.git@geni-v3 tests-GITPATH=git://git.onelab.eu/tests.git@master -f f18 -b @DATE@--f18-sfa3
34
35 ###  sfa + manifold + myslice
36 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
37 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
38 liquid && /root/bin/lbuild-nightly.sh -d federation -P develdeb.pkgs -W http://debian.onelab.eu/ -f raring -b @DATE@--f10n-ubu-r debian -B
39 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
40 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
41
42 ### nodemanager: new rpm packaging 
43 velvet && /root/bin/lbuild-nightly.sh -d lxc -f f20                                                 -b @DATE@--nm-pkgng -B nodemanager-GITPATH=git://git.onelab.eu/nodemanager.git@packaging build-GITPATH=ALL=git://git.onelab.eu/build.git@nm-one-spec ALL=nodemanager
44 #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@debian    build-GITPATH=ALL=git://git.onelab.eu/build.git@nm-one-spec ALL=nodemanager debian
45  
46 ####################
47 # wextoolbox 
48 # bbn won't build so it's taken off that build -- see wexlxc.mk in wextoolbox (branch wexlxc)
49 #  f14
50 #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
51 # f16
52 # for now this is failing because the nodeimage plain (uncompressed) package is too big, cpio seems to have a 2Gb limit
53 #liquid && /root/bin/lbuild-nightly.sh -d wexlxc -f f18 -b @DATE@--wexlxc-f18-64 -c default -c bignode
54 # f18 - never tried yet
55
56 ###### senslab - not much to test 
57 # sfa-GITPATH=git://git.f-lab.fr/sfa.git@senslab2
58
59 ####################
60 # build & test : f12 bootstrap : vserver-capable 2.6.32, util-vserver and yum, for a plain fedora 12 build or test box
61 #liquid && /root/bin/lbuild-nightly.sh -d f12 -f f12 -p linux32 -b @DATE@--f12-f12-32 -B
62 ### same software release but built on f14 - kernel excluded as, 
63 # for some reason, we have to use the one built on f12
64 #liquid && /root/bin/lbuild-nightly.sh -d f14 -f f14 -b @DATE@--f14-f14-64 -B