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

#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
Daniel Wortmann's avatar
Daniel Wortmann committed
11
export FLEUR_CONFIG_MACHINE=$m
Daniel Wortmann's avatar
Daniel Wortmann committed
12 13 14 15

if [[ $m =~ "JURECA-GPU" ]]
then
    source cmake/machines/JURECA/pgisource.sh
Daniel Wortmann's avatar
Daniel Wortmann committed
16
elif [[ $m =~ "JURECA-GCC" ]]
Daniel Wortmann's avatar
Daniel Wortmann committed
17 18
then
    source cmake/machines/JURECA/gccsource.sh
Daniel Wortmann's avatar
Daniel Wortmann committed
19
elif [[ $m =~ "JURECA" ]]
Daniel Wortmann's avatar
Daniel Wortmann committed
20 21 22 23
then
    source cmake/machines/JURECA/intelsource.sh
fi

Daniel Wortmann's avatar
Daniel Wortmann committed
24
$*
Daniel Wortmann's avatar
Daniel Wortmann committed
25 26