Add basic BuildKite :pipeline:
This commit is contained in:
parent
5bf6206578
commit
618b2b1ae6
6 changed files with 40 additions and 7 deletions
33
.buildkite/pipeline.yaml
Normal file
33
.buildkite/pipeline.yaml
Normal file
|
@ -0,0 +1,33 @@
|
|||
steps:
|
||||
- label: ":eslint: Lint"
|
||||
command:
|
||||
- "./scripts/ci/install-deps.sh"
|
||||
- "yarn lintwithexclusions"
|
||||
plugins:
|
||||
- docker#v3.0.1:
|
||||
image: "node:10"
|
||||
|
||||
- label: ":chrome: End-to-End Tests"
|
||||
command:
|
||||
- "sudo apt-get install build-essential python2.7-dev libffi-dev python-pip python-setuptools sqlite3 libssl-dev python-virtualenv libjpeg-dev libxslt1-dev"
|
||||
- "./scripts/ci/install-deps.sh"
|
||||
- "./scripts/ci/end-to-end-tests.sh"
|
||||
plugins:
|
||||
- docker#v3.0.1:
|
||||
image: "node:10"
|
||||
|
||||
- label: ":karma: Tests"
|
||||
command:
|
||||
- "./scripts/ci/install-deps.sh"
|
||||
- "./scripts/ci/unit-tests.sh"
|
||||
plugins:
|
||||
- docker#v3.0.1:
|
||||
image: "node:10"
|
||||
|
||||
- label: "🔧 Riot Tests"
|
||||
command:
|
||||
- "./scripts/ci/install-deps.sh"
|
||||
- "./scripts/ci/riot-unit-tests.sh"
|
||||
plugins:
|
||||
- docker#v3.0.1:
|
||||
image: "node:10"
|
2
scripts/travis/build.sh → scripts/ci/build.sh
Executable file → Normal file
2
scripts/travis/build.sh → scripts/ci/build.sh
Executable file → Normal file
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# script which is run by the travis build (after `yarn test`).
|
||||
# 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.
|
||||
|
4
scripts/travis/end-to-end-tests.sh → scripts/ci/end-to-end-tests.sh
Executable file → Normal file
4
scripts/travis/end-to-end-tests.sh → scripts/ci/end-to-end-tests.sh
Executable file → Normal file
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# script which is run by the travis build (after `yarn test`).
|
||||
# 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.
|
||||
|
||||
|
@ -9,7 +9,7 @@ set -ev
|
|||
RIOT_WEB_DIR=riot-web
|
||||
REACT_SDK_DIR=`pwd`
|
||||
|
||||
scripts/travis/build.sh
|
||||
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
|
0
scripts/travis/install-deps.sh → scripts/ci/install-deps.sh
Executable file → Normal file
0
scripts/travis/install-deps.sh → scripts/ci/install-deps.sh
Executable file → Normal file
4
scripts/travis/riot-unit-tests.sh → scripts/ci/riot-unit-tests.sh
Executable file → Normal file
4
scripts/travis/riot-unit-tests.sh → scripts/ci/riot-unit-tests.sh
Executable file → Normal file
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# script which is run by the travis build (after `yarn test`).
|
||||
# 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.
|
||||
|
||||
|
@ -8,7 +8,7 @@ set -ev
|
|||
|
||||
RIOT_WEB_DIR=riot-web
|
||||
|
||||
scripts/travis/build.sh
|
||||
scripts/ci/build.sh
|
||||
pushd "$RIOT_WEB_DIR"
|
||||
yarn test
|
||||
popd
|
4
scripts/travis/unit-tests.sh → scripts/ci/unit-tests.sh
Executable file → Normal file
4
scripts/travis/unit-tests.sh → scripts/ci/unit-tests.sh
Executable file → Normal file
|
@ -1,10 +1,10 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# script which is run by the travis build (after `yarn test`).
|
||||
# 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/travis/build.sh
|
||||
scripts/ci/build.sh
|
||||
CHROME_BIN='/usr/bin/google-chrome-stable' yarn test
|
Loading…
Reference in a new issue