buildbot.sh 752 Bytes
Newer Older
Daniel Wortmann's avatar
Daniel Wortmann committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#!/bin/sh

#This skript is used by buildbot to set up the environment on different machines
# is loads modules and sets environment variables by sourcing the corresponding 
# files in the machines directory and then calls the configuration script with
# the correct machine name

# the environment variable BUILDSLAVE_MACHINE must be set correctly for this to work

m=$BUILDSLAVE_MACHINE


if [[ $m =~ "JURECA-GPU" ]]
then
    source cmake/machines/JURECA/pgisource.sh
    configure.sh JURECA
    exit
fi

if [[ $m =~ "JURECA-GCC" ]]
then
    source cmake/machines/JURECA/gccsource.sh
    configure.sh AUTO
    exit
fi

Daniel Wortmann's avatar
Daniel Wortmann committed
27 28 29 30 31 32 33
if [[ $m =~ "JURECA" ]]
then
    source cmake/machines/JURECA/intelsource.sh
    configure.sh JURECA
    exit
fi

Daniel Wortmann's avatar
Daniel Wortmann committed
34 35 36
configure.sh $m