build_io.sh 1.36 KB
Newer Older
incardon's avatar
incardon committed
1 2
#! /bin/bash

incardon's avatar
incardon committed
3
# Make a directory in /tmp/openfpm_data
incardon's avatar
incardon committed
4 5 6

mkdir /tmp/openfpm_io
mv * .[^.]* /tmp/openfpm_io
7
mv /tmp/openfpm_io openfpm_io
incardon's avatar
incardon committed
8

9
mkdir openfpm_io/src/config
incardon's avatar
incardon committed
10

11 12 13
git clone git@ppmcore.mpi-cbg.de:incardon/openfpm_devices.git openfpm_devices
git clone git@ppmcore.mpi-cbg.de:incardon/openfpm_data.git openfpm_data
git clone git@ppmcore.mpi-cbg.de:incardon/openfpm_pdata.git openfpm_pdata
Pietro Incardona's avatar
Pietro Incardona committed
14
git clone git@ppmcore.mpi-cbg.de:incardon/openfpm_vcluster.git openfpm_vcluster
incardon's avatar
incardon committed
15

incardon's avatar
incardon committed
16
cd "$1/openfpm_io"
incardon's avatar
incardon committed
17

incardon's avatar
incardon committed
18 19
echo "Compiling on $2"

incardon's avatar
incardon committed
20 21 22 23
sh ./autogen.sh
if [ "$2" == "master" ]
then
 sh ./configure --disable-gpu
incardon's avatar
incardon committed
24
elif [ "$2" == "gin" ]
incardon's avatar
incardon committed
25
then
incardon's avatar
incardon committed
26 27
 module load gcc/4.8.2
 module load boost/1.54.0
incardon's avatar
incardon committed
28
 sh ./configure --with-boost=/sw/apps/boost/1.54.0/
incardon's avatar
incardon committed
29 30 31 32 33 34
else
 sh ./configure
fi
make

./src/io
incardon's avatar
incardon committed
35 36 37 38 39 40
if [ $? -ne 0 ]; then
   curl -X POST --data "payload={\"icon_emoji\": \":jenkins:\", \"username\": \"jenkins\"  , \"attachments\":[{ \"title\":\"Error:\", \"color\": \"#FF0000\", \"text\":\"$2 failed to complete the openfpm_io test \" }] }" https://hooks.slack.com/services/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
   exit 1 ; 
fi

curl -X POST --data "payload={\"icon_emoji\": \":jenkins:\", \"username\": \"jenkins\"  , \"attachments\":[{ \"title\":\"Info:\", \"color\": \"#00FF00\", \"text\":\"$2 completed succeffuly the openfpm_io test \" }] }" https://hooks.slack.com/services/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
incardon's avatar
incardon committed
41