buildbot.sh 930 Bytes
Newer Older
Daniel Wortmann's avatar
Daniel Wortmann committed
1
#!/usr/bin/env bash
2 3 4 5 6 7 8

#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
9
DIR="`dirname \"$0\"`"
10
m=$BUILDSLAVE_MACHINE
Daniel Wortmann's avatar
Daniel Wortmann committed
11
export FLEUR_CONFIG_MACHINE=$m
12 13 14

if [[ $m =~ "JURECA-GPU" ]]
then
15
    source $DIR/machines/JURECA/pgisource.sh
Daniel Wortmann's avatar
Daniel Wortmann committed
16
    export FLEUR_CONFIG_MACHINE=JURECA
Daniel Wortmann's avatar
Daniel Wortmann committed
17
elif [[ $m =~ "JURECA-GCC" ]]
18
then
19
    source $DIR/machines/JURECA/gccsource.sh
Daniel Wortmann's avatar
Daniel Wortmann committed
20
    export FLEUR_CONFIG_MACHINE=AUTO
Daniel Wortmann's avatar
Daniel Wortmann committed
21
elif [[ $m =~ "JURECA" ]]
Daniel Wortmann's avatar
Daniel Wortmann committed
22
then
23
    source $DIR/machines/JURECA/intelsource.sh
Daniel Wortmann's avatar
Daniel Wortmann committed
24
    export FLEUR_CONFIG_MACHINE=JURECA
25 26 27 28
elif [[ $m =~ "JUQUEEN" ]]
then
    source $DIR/machines/JUQUEEN/xlfsource.sh
    export FLEUR_CONFIG_MACHINE=JUQUEEN
Daniel Wortmann's avatar
Daniel Wortmann committed
29 30
fi

Daniel Wortmann's avatar
Daniel Wortmann committed
31
$*
32 33