mirror of https://github.com/vector-im/riot-web
Merge pull request #1869 from matrix-org/dbkr/use_correct_js_sdk_branch
Use the right js-sdk branch when testingpull/21833/head
commit
33e67a8f42
|
@ -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
|
||||
|
||||
|
|
|
@ -15,6 +15,5 @@ addons:
|
|||
chrome: stable
|
||||
install:
|
||||
- npm install
|
||||
- (cd node_modules/matrix-js-sdk && npm install)
|
||||
script:
|
||||
./scripts/travis.sh
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
org="$1"
|
||||
repo="$2"
|
||||
|
||||
curbranch="${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
|
||||
echo "Determined branch to be $curbranch"
|
||||
|
||||
git clone https://github.com/$org/$repo.git $repo --branch "$curbranch" || git clone https://github.com/$org/$repo.git $repo --branch develop
|
||||
|
|
@ -2,6 +2,14 @@
|
|||
|
||||
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
|
||||
|
||||
cd matrix-js-sdk
|
||||
npm install
|
||||
cd ..
|
||||
|
||||
npm run test
|
||||
./.travis-test-riot.sh
|
||||
|
||||
|
|
Loading…
Reference in New Issue