added: trigger support for opm-data on jenkins builds

This commit is contained in:
Arne Morten Kvarving 2016-04-06 10:15:54 +02:00
parent 4becc05314
commit b406be3839
3 changed files with 34 additions and 33 deletions

View File

@ -1,19 +1,19 @@
#!/bin/bash
# Build flow binary
pushd .
cd serial/build-opm-autodiff
cmake --build . --target flow
popd
# Clone opm-data if necessary
pushd .
cd deps
if ! test -d opm-data
if ! test -d deps/opm-data
then
git clone --depth 1 --single-branch -b master https://github.com/OPM/opm-data
OPM_DATA_REVISION="master"
if grep -q "opm-data=" <<< $ghprbCommentBody
then
OPM_DATA_REVISION=pull/`echo $ghprbCommentBody | sed -r 's/.*opm-data=([0-9]+).*/\1/g'`/merge
fi
source $WORKSPACE/deps/opm-common/jenkins/build-opm-module.sh
clone_module opm-data $OPM_DATA_REVISION
fi
cd opm-data
pushd .
cd deps/opm-data
# Run the norne case
cd norne

View File

@ -1,19 +1,20 @@
#!/bin/bash
# Build flow_polymer binary
pushd .
cd serial/build-opm-autodiff
cmake --build . --target flow_polymer
popd
# Clone opm-data if necessary
pushd .
cd deps
if ! test -d opm-data
if ! test -d deps/opm-data
then
git clone --depth 1 --single-branch -b master https://github.com/OPM/opm-data
OPM_DATA_REVISION="master"
if grep -q "opm-data=" <<< $ghprbCommentBody
then
OPM_DATA_REVISION=pull/`echo $ghprbCommentBody | sed -r 's/.*opm-data=([0-9]+).*/\1/g'`/merge
fi
source $WORKSPACE/deps/opm-common/jenkins/build-opm-module.sh
echo "grabbing opm-data rev $OPM_DATA_REVISION"
clone_module opm-data $OPM_DATA_REVISION
fi
cd opm-data
pushd .
cd deps/opm-data
# Run the simple2D polymer case
cd polymer_test_suite/simple2D

View File

@ -1,19 +1,19 @@
#!/bin/bash
# Build flow binary
pushd .
cd serial/build-opm-autodiff
cmake --build . --target flow
popd
# Clone opm-data if necessary
pushd .
cd deps
if ! test -d opm-data
if ! test -d deps/opm-data
then
git clone --depth 1 --single-branch -b master https://github.com/OPM/opm-data
OPM_DATA_REVISION="master"
if grep -q "opm-data=" <<< $ghprbCommentBody
then
OPM_DATA_REVISION=pull/`echo $ghprbCommentBody | sed -r 's/.*opm-data=([0-9]+).*/\1/g'`/merge
fi
source $WORKSPACE/deps/opm-common/jenkins/build-opm-module.sh
clone_module opm-data $OPM_DATA_REVISION
fi
cd opm-data
pushd .
cd deps/opm-data
# Run the SPE1/3/9 cases
cd spe1