Add right-branch logic to travis test script

pull/21833/head
David Baker 2017-05-22 16:27:41 +01:00
parent f05de44646
commit 2c462bdfb4
1 changed files with 4 additions and 1 deletions

View File

@ -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"