Add basic BuildKite :pipeline:
This commit is contained in:
parent
5bf6206578
commit
618b2b1ae6
6 changed files with 40 additions and 7 deletions
25
scripts/ci/build.sh
Normal file
25
scripts/ci/build.sh
Normal file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# script which is run by the CI 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
|
21
scripts/ci/end-to-end-tests.sh
Normal file
21
scripts/ci/end-to-end-tests.sh
Normal file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# script which is run by the CI 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`
|
||||
|
||||
scripts/ci/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
|
13
scripts/ci/install-deps.sh
Normal file
13
scripts/ci/install-deps.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
|
||||
scripts/fetchdep.sh matrix-org matrix-js-sdk
|
||||
|
||||
pushd matrix-js-sdk
|
||||
yarn link
|
||||
yarn install
|
||||
popd
|
||||
|
||||
yarn link matrix-js-sdk
|
||||
yarn install
|
14
scripts/ci/riot-unit-tests.sh
Normal file
14
scripts/ci/riot-unit-tests.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# script which is run by the CI 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
|
||||
|
||||
scripts/ci/build.sh
|
||||
pushd "$RIOT_WEB_DIR"
|
||||
yarn test
|
||||
popd
|
10
scripts/ci/unit-tests.sh
Normal file
10
scripts/ci/unit-tests.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# script which is run by the CI build (after `yarn test`).
|
||||
#
|
||||
# clones riot-web develop and runs the tests against our version of react-sdk.
|
||||
|
||||
set -ev
|
||||
|
||||
scripts/ci/build.sh
|
||||
CHROME_BIN='/usr/bin/google-chrome-stable' yarn test
|
Loading…
Add table
Add a link
Reference in a new issue