From 2c462bdfb4fac7ea4d48fea568e0fa4b4d04341d Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 22 May 2017 16:27:41 +0100 Subject: [PATCH] Add right-branch logic to travis test script --- .travis-test-riot.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis-test-riot.sh b/.travis-test-riot.sh index c280044246..bab8242146 100755 --- a/.travis-test-riot.sh +++ b/.travis-test-riot.sh @@ -9,7 +9,10 @@ set -ev RIOT_WEB_DIR=riot-web REACT_SDK_DIR=`pwd` -git clone --depth=1 --branch develop https://github.com/vector-im/riot-web.git \ +curbranch="${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}" +echo "Determined branch to be $curbranch" + +git clone --depth=1 --branch "$curbranch" https://github.com/vector-im/riot-web.git \ "$RIOT_WEB_DIR" cd "$RIOT_WEB_DIR"