2017-01-19 20:51:20 +08:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
2019-03-14 07:42:05 +08:00
|
|
|
# script which is run by the CI build (after `yarn test`).
|
2017-01-19 20:51:20 +08:00
|
|
|
#
|
|
|
|
# clones riot-web develop and runs the tests against our version of react-sdk.
|
|
|
|
|
|
|
|
set -ev
|
|
|
|
|
2017-01-20 02:23:34 +08:00
|
|
|
RIOT_WEB_DIR=riot-web
|
|
|
|
REACT_SDK_DIR=`pwd`
|
|
|
|
|
2019-03-12 02:08:37 +08:00
|
|
|
yarn link
|
|
|
|
|
2018-05-02 17:58:43 +08:00
|
|
|
scripts/fetchdep.sh vector-im riot-web
|
2017-01-20 02:23:34 +08:00
|
|
|
|
2019-03-12 02:08:37 +08:00
|
|
|
pushd "$RIOT_WEB_DIR"
|
2017-01-20 01:41:58 +08:00
|
|
|
|
2019-03-12 02:08:37 +08:00
|
|
|
yarn link matrix-js-sdk
|
|
|
|
yarn link matrix-react-sdk
|
2017-01-20 01:41:58 +08:00
|
|
|
|
2019-03-12 02:08:37 +08:00
|
|
|
yarn install
|
2017-01-20 01:41:58 +08:00
|
|
|
|
2019-03-11 22:22:02 +08:00
|
|
|
yarn build
|
2019-03-12 02:08:37 +08:00
|
|
|
|
2018-07-27 20:36:47 +08:00
|
|
|
popd
|