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