Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Run end to end tests as part of Travis build #2091

Merged
merged 7 commits into from
Aug 3, 2018
Next Next commit
try to run e2e tests in travis
bwindels committed Jul 31, 2018
commit fd5193b9f492eaaa799059c0c050f50224b15dc4
11 changes: 10 additions & 1 deletion .travis-test-riot.sh
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ RIOT_WEB_DIR=riot-web
REACT_SDK_DIR=`pwd`

scripts/fetchdep.sh vector-im riot-web
cd "$RIOT_WEB_DIR"
pushd "$RIOT_WEB_DIR"

mkdir node_modules
npm install
@@ -24,3 +24,12 @@ rm -r node_modules/matrix-react-sdk
ln -s "$REACT_SDK_DIR" node_modules/matrix-react-sdk

npm run test
popd

# run end to end tests
git clone https://github.com/matrix-org/matrix-react-end-to-end-tests.git --branch bwindels/ci_script
pushd matrix-react-end-to-end-tests
ln -s $REACT_SDK_DIR/$RIOT_WEB_DIR riot/riot-web
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true sh ./install.sh
sh ./run.sh
popd