run.sh 566 Bytes
Newer Older
incardon's avatar
incardon committed
1 2 3
#! /bin/bash

source $HOME/.bashrc
incardon's avatar
incardon committed
4
source $HOME/openfpm_vars_$3
incardon's avatar
incardon committed
5 6 7 8 9 10 11 12 13

echo "$PATH"

# Make a directory in /tmp/openfpm_data

cd "$1/openfpm_io"

if [ "$2" == "gin" ]
then
incardon's avatar
incardon committed
14
 module load gcc/4.9.2
incardon's avatar
incardon committed
15 16 17 18 19 20 21 22 23 24
 module load boost/1.54.0
fi

./src/io
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