mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-26 01:01:00 -06:00
4b67b9e0de
remove opm-material from upstreams / dependencies
45 lines
999 B
Bash
Executable File
45 lines
999 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#Print commands as they execute
|
|
#set -x
|
|
|
|
declare -a upstreams
|
|
upstreams=(opm-common
|
|
opm-grid
|
|
opm-models)
|
|
|
|
declare -A upstreamRev
|
|
upstreamRev[opm-common]=master
|
|
upstreamRev[opm-grid]=master
|
|
upstreamRev[opm-models]=master
|
|
|
|
if grep -q "opm-common=" <<< $ghprbCommentBody
|
|
then
|
|
upstreamRev[opm-common]=pull/`echo $ghprbCommentBody | sed -r 's/.*opm-common=([0-9]+).*/\1/g'`/merge
|
|
fi
|
|
|
|
# No downstreams currently
|
|
declare -a downstreams
|
|
declare -A downstreamRev
|
|
|
|
# Clone opm-common
|
|
pushd .
|
|
mkdir -p $WORKSPACE/deps/opm-common
|
|
cd $WORKSPACE/deps/opm-common
|
|
git init .
|
|
git remote add origin https://github.com/OPM/opm-common
|
|
git fetch --depth 1 origin ${upstreamRev[opm-common]}:branch_to_build
|
|
test $? -eq 0 || exit 1
|
|
git checkout branch_to_build
|
|
popd
|
|
|
|
source $WORKSPACE/deps/opm-common/jenkins/build-opm-module.sh
|
|
|
|
parseRevisions
|
|
printHeader opm-simulators
|
|
|
|
# Setup opm-data
|
|
source $WORKSPACE/deps/opm-common/jenkins/setup-opm-tests.sh
|
|
|
|
build_module_full opm-simulators
|