mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-07-30 02:17:56 -05:00
added: trigger support for opm-data on jenkins builds
This commit is contained in:
+11
-11
@@ -1,19 +1,19 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Build flow binary
|
|
||||||
pushd .
|
|
||||||
cd serial/build-opm-autodiff
|
|
||||||
cmake --build . --target flow
|
|
||||||
popd
|
|
||||||
|
|
||||||
# Clone opm-data if necessary
|
# Clone opm-data if necessary
|
||||||
pushd .
|
if ! test -d deps/opm-data
|
||||||
cd deps
|
|
||||||
if ! test -d opm-data
|
|
||||||
then
|
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
|
fi
|
||||||
cd opm-data
|
|
||||||
|
pushd .
|
||||||
|
cd deps/opm-data
|
||||||
|
|
||||||
# Run the norne case
|
# Run the norne case
|
||||||
cd norne
|
cd norne
|
||||||
|
|||||||
+12
-11
@@ -1,19 +1,20 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Build flow_polymer binary
|
|
||||||
pushd .
|
|
||||||
cd serial/build-opm-autodiff
|
|
||||||
cmake --build . --target flow_polymer
|
|
||||||
popd
|
|
||||||
|
|
||||||
# Clone opm-data if necessary
|
# Clone opm-data if necessary
|
||||||
pushd .
|
if ! test -d deps/opm-data
|
||||||
cd deps
|
|
||||||
if ! test -d opm-data
|
|
||||||
then
|
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
|
fi
|
||||||
cd opm-data
|
|
||||||
|
pushd .
|
||||||
|
cd deps/opm-data
|
||||||
|
|
||||||
# Run the simple2D polymer case
|
# Run the simple2D polymer case
|
||||||
cd polymer_test_suite/simple2D
|
cd polymer_test_suite/simple2D
|
||||||
|
|||||||
+11
-11
@@ -1,19 +1,19 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Build flow binary
|
|
||||||
pushd .
|
|
||||||
cd serial/build-opm-autodiff
|
|
||||||
cmake --build . --target flow
|
|
||||||
popd
|
|
||||||
|
|
||||||
# Clone opm-data if necessary
|
# Clone opm-data if necessary
|
||||||
pushd .
|
if ! test -d deps/opm-data
|
||||||
cd deps
|
|
||||||
if ! test -d opm-data
|
|
||||||
then
|
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
|
fi
|
||||||
cd opm-data
|
|
||||||
|
pushd .
|
||||||
|
cd deps/opm-data
|
||||||
|
|
||||||
# Run the SPE1/3/9 cases
|
# Run the SPE1/3/9 cases
|
||||||
cd spe1
|
cd spe1
|
||||||
|
|||||||
Reference in New Issue
Block a user