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 762 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
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

#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