build_numerics.sh 1.15 KB
Newer Older
1 2
#! /bin/bash

Pietro Incardona's avatar
Pietro Incardona committed
3 4 5 6 7 8
echo "RUN numerics test"

source $HOME/openfpm_vars

mpirun -np 1 ./src/numerics
if [ $? -ne 0 ]; then
Pietro Incardona's avatar
Pietro Incardona committed
9
   curl -X POST --data "payload={\"icon_emoji\": \":jenkins:\", \"username\": \"jenkins\"  , \"attachments\":[{ \"title\":\"Error:\", \"color\": \"#FF0000\", \"text\":\"$2 failed to complete the openfpm_numerics test \" }] }" https://hooks.slack.com/services/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
Pietro Incardona's avatar
Pietro Incardona committed
10 11 12 13
   exit 1 ;
fi
mpirun -np 2 ./src/numerics
if [ $? -ne 0 ]; then
Pietro Incardona's avatar
Pietro Incardona committed
14
   curl -X POST --data "payload={\"icon_emoji\": \":jenkins:\", \"username\": \"jenkins\"  , \"attachments\":[{ \"title\":\"Error:\", \"color\": \"#FF0000\", \"text\":\"$2 failed to complete the openfpm_numerics test \" }] }" https://hooks.slack.com/services/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
Pietro Incardona's avatar
Pietro Incardona committed
15 16 17 18
   exit 1 ;
fi
mpirun -np 3 ./src/numerics
if [ $? -ne 0 ]; then
Pietro Incardona's avatar
Pietro Incardona committed
19
   curl -X POST --data "payload={\"icon_emoji\": \":jenkins:\", \"username\": \"jenkins\"  , \"attachments\":[{ \"title\":\"Error:\", \"color\": \"#FF0000\", \"text\":\"$2 failed to complete the openfpm_numerics test \" }] }" https://hooks.slack.com/services/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
Pietro Incardona's avatar
Pietro Incardona committed
20 21 22
   exit 1 ;
fi

23