IffGit has a new shared runner for building Docker images in GitLab CI. Visit https://iffgit.fz-juelich.de/examples/ci-docker-in-docker for more details.

buildbot.sh 793 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
    export FLEUR_CONFIG_MACHINE=JURECA
Daniel Wortmann's avatar
Daniel Wortmann committed
17
elif [[ $m =~ "JURECA-GCC" ]]
Daniel Wortmann's avatar
Daniel Wortmann committed
18
19
then
    source cmake/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
23
then
    source cmake/machines/JURECA/intelsource.sh
Daniel Wortmann's avatar
Daniel Wortmann committed
24
    export FLEUR_CONFIG_MACHINE=JURECA
Daniel Wortmann's avatar
Daniel Wortmann committed
25
26
fi

Daniel Wortmann's avatar
Daniel Wortmann committed
27
$*
Daniel Wortmann's avatar
Daniel Wortmann committed
28
29