mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
337ac2f6a0
Take advantage of Yarn's preservation of links while installing and set up links first and install second. This should result in a small speedup since we no longer install the published SDKs just to replace them on the next line.
26 lines
368 B
Bash
Executable File
26 lines
368 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# script which is run by the travis build (after `yarn test`).
|
|
#
|
|
# clones riot-web develop and runs the tests against our version of react-sdk.
|
|
|
|
set -ev
|
|
|
|
RIOT_WEB_DIR=riot-web
|
|
REACT_SDK_DIR=`pwd`
|
|
|
|
yarn link
|
|
|
|
scripts/fetchdep.sh vector-im riot-web
|
|
|
|
pushd "$RIOT_WEB_DIR"
|
|
|
|
yarn link matrix-js-sdk
|
|
yarn link matrix-react-sdk
|
|
|
|
yarn install
|
|
|
|
yarn build
|
|
|
|
popd
|