From 6b7f61b984614d261bbf2e2718c4be9581a1729c Mon Sep 17 00:00:00 2001 From: Derek Higgins Date: Tue, 8 Oct 2019 12:24:43 +0100 Subject: [PATCH] Add support to test against alternative branches Use BASE_BRANCH to represent the branch a PR is opened against. We've change the scripts that trigger run_ci.sh to pass this down the line. Fixes: #822 --- run_ci.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_ci.sh b/run_ci.sh index c22f9c704..22b8dbd97 100755 --- a/run_ci.sh +++ b/run_ci.sh @@ -114,7 +114,7 @@ sudo mount -o bind /opt/data/installer-cache /home/notstack/.cache/openshift-ins if [ -n "$REPO" -a -n "$BRANCH" ] ; then pushd ~ if [ ! -d ${BASE_REPO#*/} ] ; then - git clone https://github.com/$BASE_REPO + git clone https://github.com/$BASE_REPO -b ${BASE_BRANCH:-master} cd ${BASE_REPO#*/} git pull --no-edit https://github.com/$REPO $BRANCH git log --oneline -10 --graph