Use the right js-sdk branch when testing

On the react-sdk tests not just riot-web
pull/21833/head
David Baker 2018-05-02 10:58:43 +01:00
父节点 1413890a9a
当前提交 730512bc3f
共有 2 个文件被更改,包括 5 次插入8 次删除

查看文件

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

查看文件

@ -2,6 +2,10 @@
set -ex
scripts/fetchdep.sh matrix-org matrix-js-sdk
rm -r node_modules/matrix-js-sdk || true
ln -s matrix-js-sdk node_modules/matrix-js-sdk
npm run test
./.travis-test-riot.sh