Add basic BuildKite :pipeline:

pull/21833/head
Travis Ralston 2019-03-13 17:42:05 -06:00
parent 5bf6206578
commit 618b2b1ae6
6 changed files with 40 additions and 7 deletions

33
.buildkite/pipeline.yaml Normal file
View 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
View 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.

View 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

View File

View 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

View 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