mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-21 16:57:25 -06:00
55 lines
1.6 KiB
Bash
Executable File
55 lines
1.6 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
source `dirname $0`/build-opm-autodiff.sh
|
|
|
|
ERT_REVISION=master
|
|
OPM_COMMON_REVISION=master
|
|
OPM_PARSER_REVISION=master
|
|
OPM_MATERIAL_REVISION=master
|
|
OPM_CORE_REVISION=master
|
|
OPM_GRID_REVISION=master
|
|
OPM_OUTPUT_REVISION=master
|
|
OPM_AUTODIFF_REVISION=$sha1
|
|
|
|
if grep -q "ert=" <<< $ghprbCommentBody
|
|
then
|
|
ERT_REVISION=pull/`echo $ghprbCommentBody | sed -r 's/.*ert=([0-9]+).*/\1/g'`/merge
|
|
fi
|
|
|
|
if grep -q "opm-common=" <<< $ghprbCommentBody
|
|
then
|
|
OPM_COMMON_REVISION=pull/`echo $ghprbCommentBody | sed -r 's/.*opm-common=([0-9]+).*/\1/g'`/merge
|
|
fi
|
|
|
|
if grep -q "opm-parser=" <<< $ghprbCommentBody
|
|
then
|
|
OPM_PARSER_REVISION=pull/`echo $ghprbCommentBody | sed -r 's/.*opm-parser=([0-9]+).*/\1/g'`/merge
|
|
fi
|
|
|
|
if grep -q "opm-material=" <<< $ghprbCommentBody
|
|
then
|
|
OPM_MATERIAL_REVISION=pull/`echo $ghprbCommentBody | sed -r 's/.*opm-material=([0-9]+).*/\1/g'`/merge
|
|
fi
|
|
|
|
if grep -q "opm-core=" <<< $ghprbCommentBody
|
|
then
|
|
OPM_CORE_REVISION=pull/`echo $ghprbCommentBody | sed -r 's/.*opm-core=([0-9]+).*/\1/g'`/merge
|
|
fi
|
|
|
|
if grep -q "opm-grid=" <<< $ghprbCommentBody
|
|
then
|
|
OPM_GRID_REVISION=pull/`echo $ghprbCommentBody | sed -r 's/.*opm-grid=([0-9]+).*/\1/g'`/merge
|
|
fi
|
|
|
|
if grep -q "opm-output=" <<< $ghprbCommentBody
|
|
then
|
|
OPM_OUTPUT_REVISION=pull/`echo $ghprbCommentBody | sed -r 's/.*opm-output=([0-9]+).*/\1/g'`/merge
|
|
fi
|
|
|
|
echo "Building with ert=$ERT_REVISION opm-common=$OPM_COMMON_REVISION opm-parser=$OPM_PARSER_REVISION opm-material=$OPM_MATERIAL_REVISION opm-core=$OPM_CORE_REVISION opm-grid=$OPM_GRID_REVISION opm-output=$OPM_OUTPUT_REVISION opm-autodiff=$OPM_AUTODIFF_REVISION"
|
|
|
|
build_opm_autodiff
|
|
test $? -eq 0 || exit 1
|
|
|
|
cp serial/build-opm-autodiff/testoutput.xml .
|