Use the right js-sdk branch when testing

On the react-sdk tests not just riot-web
This commit is contained in:
David Baker 2018-05-02 10:58:43 +01:00
parent 1413890a9a
commit 730512bc3f
2 changed files with 5 additions and 8 deletions

View file

@ -9,16 +9,9 @@ set -ev
RIOT_WEB_DIR=riot-web
REACT_SDK_DIR=`pwd`
curbranch="${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
echo "Determined branch to be $curbranch"
git clone https://github.com/vector-im/riot-web.git \
"$RIOT_WEB_DIR"
scripts/fetchdep.sh vector-im riot-web
cd "$RIOT_WEB_DIR"
git checkout "$curbranch" || git checkout develop
mkdir node_modules
npm install