This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 829
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2414 from matrix-org/erikj/travis_cleanup
Refactor travis-ci to use parallel jobs
- Loading branch information
Showing
5 changed files
with
48 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
# | ||
# script which is run by the travis build (after `npm run 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` | ||
|
||
scripts/travis/build.sh | ||
# run end to end tests | ||
scripts/fetchdep.sh matrix-org matrix-react-end-to-end-tests master | ||
pushd matrix-react-end-to-end-tests | ||
ln -s $REACT_SDK_DIR/$RIOT_WEB_DIR riot/riot-web | ||
# PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true ./install.sh | ||
# CHROME_PATH=$(which google-chrome-stable) ./run.sh | ||
./install.sh | ||
./run.sh --travis | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,11 @@ | ||
#!/bin/sh | ||
|
||
set -ex | ||
|
||
npm install | ||
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 | ||
|
||
# run the linter, but exclude any files known to have errors or warnings. | ||
npm run lintwithexclusions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
# | ||
# script which is run by the travis build (after `npm run test`). | ||
# | ||
# clones riot-web develop and runs the tests against our version of react-sdk. | ||
|
||
set -ev | ||
|
||
scripts/travis/build.sh | ||
npm run test |