2019-03-14 00:42:05 +01:00
|
|
|
steps:
|
2019-12-12 22:37:14 +01:00
|
|
|
- label: ":eslint: JS Lint"
|
2019-03-14 00:42:05 +01:00
|
|
|
command:
|
2019-06-04 17:40:41 +02:00
|
|
|
- "echo '--- Install js-sdk'"
|
|
|
|
- "./scripts/ci/install-deps.sh"
|
2019-12-12 22:37:14 +01:00
|
|
|
- "yarn lint:js"
|
2019-03-14 00:42:05 +01:00
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
2019-12-12 22:37:14 +01:00
|
|
|
image: "node:12"
|
|
|
|
|
|
|
|
- label: ":eslint: TS Lint"
|
|
|
|
command:
|
|
|
|
- "echo '--- Install js-sdk'"
|
|
|
|
- "./scripts/ci/install-deps.sh"
|
|
|
|
- "yarn lint:ts"
|
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
|
|
|
image: "node:12"
|
|
|
|
|
|
|
|
- label: ":eslint: Types Lint"
|
|
|
|
command:
|
|
|
|
- "echo '--- Install js-sdk'"
|
|
|
|
- "./scripts/ci/install-deps.sh"
|
|
|
|
- "yarn lint:types"
|
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
|
|
|
image: "node:12"
|
|
|
|
|
2019-12-17 12:53:18 +01:00
|
|
|
- label: ":jest: Tests"
|
2019-03-21 17:32:22 +01:00
|
|
|
agents:
|
|
|
|
# We use a medium sized instance instead of the normal small ones because
|
|
|
|
# webpack loves to gorge itself on resources.
|
|
|
|
queue: "medium"
|
2019-03-14 00:42:05 +01:00
|
|
|
command:
|
2020-01-10 00:00:13 +01:00
|
|
|
- "echo '--- Install js-sdk'"
|
2019-03-14 00:44:32 +01:00
|
|
|
# TODO: Remove hacky chmod for BuildKite
|
|
|
|
- "chmod +x ./scripts/ci/*.sh"
|
|
|
|
- "chmod +x ./scripts/*"
|
2019-03-20 20:10:47 +01:00
|
|
|
- "echo '--- Installing Dependencies'"
|
2019-03-14 00:42:05 +01:00
|
|
|
- "./scripts/ci/install-deps.sh"
|
2020-01-13 21:36:35 +01:00
|
|
|
- "echo '--- Running initial build steps'"
|
|
|
|
- "yarn build"
|
2019-03-20 20:10:47 +01:00
|
|
|
- "echo '+++ Running Tests'"
|
2019-12-17 13:16:40 +01:00
|
|
|
- "yarn test"
|
2019-03-14 00:42:05 +01:00
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
2020-01-10 00:00:13 +01:00
|
|
|
image: "node:12"
|
2019-03-14 00:42:05 +01:00
|
|
|
|
2019-12-12 22:37:14 +01:00
|
|
|
- label: "🛠 Build"
|
|
|
|
command:
|
|
|
|
- "echo '--- Install js-sdk'"
|
|
|
|
- "./scripts/ci/install-deps.sh"
|
2020-01-13 21:36:35 +01:00
|
|
|
- "echo '+++ Building Project'"
|
2019-12-12 22:37:14 +01:00
|
|
|
- "yarn build"
|
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
|
|
|
image: "node:12"
|
2019-03-14 00:42:05 +01:00
|
|
|
|
2020-01-10 01:55:57 +01:00
|
|
|
- label: ":chains: End-to-End Tests"
|
|
|
|
agents:
|
|
|
|
# We use a xlarge sized instance instead of the normal small ones because
|
|
|
|
# e2e tests otherwise take +-8min
|
|
|
|
queue: "xlarge"
|
|
|
|
command:
|
|
|
|
# TODO: Remove hacky chmod for BuildKite
|
|
|
|
- "echo '--- Setup'"
|
|
|
|
- "chmod +x ./scripts/ci/*.sh"
|
|
|
|
- "chmod +x ./scripts/*"
|
|
|
|
- "echo '--- Install js-sdk'"
|
|
|
|
- "./scripts/ci/install-deps.sh"
|
2020-01-13 21:36:35 +01:00
|
|
|
- "echo '--- Running initial build steps'"
|
|
|
|
- "yarn build"
|
|
|
|
- "echo '+++ Running Tests'"
|
2020-01-10 01:55:57 +01:00
|
|
|
- "./scripts/ci/end-to-end-tests.sh"
|
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
|
|
|
image: "matrixdotorg/riotweb-ci-e2etests-env:latest"
|
|
|
|
propagate-environment: true
|
|
|
|
|
|
|
|
- label: "🔧 Riot Tests"
|
|
|
|
agents:
|
|
|
|
# We use a medium sized instance instead of the normal small ones because
|
|
|
|
# webpack loves to gorge itself on resources.
|
|
|
|
queue: "medium"
|
|
|
|
command:
|
|
|
|
# Install chrome
|
|
|
|
- "echo '--- Installing Chrome'"
|
|
|
|
- "wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -"
|
|
|
|
- "sh -c 'echo \"deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main\" >> /etc/apt/sources.list.d/google.list'"
|
|
|
|
- "apt-get update"
|
|
|
|
- "apt-get install -y google-chrome-stable"
|
|
|
|
# TODO: Remove hacky chmod for BuildKite
|
|
|
|
- "chmod +x ./scripts/ci/*.sh"
|
|
|
|
- "chmod +x ./scripts/*"
|
|
|
|
- "echo '--- Installing Dependencies'"
|
|
|
|
- "./scripts/ci/install-deps.sh"
|
2020-01-13 21:36:35 +01:00
|
|
|
- "echo '--- Running initial build steps'"
|
|
|
|
- "yarn build"
|
2020-01-10 01:55:57 +01:00
|
|
|
- "echo '+++ Running Tests'"
|
|
|
|
- "./scripts/ci/riot-unit-tests.sh"
|
|
|
|
env:
|
|
|
|
CHROME_BIN: "/usr/bin/google-chrome-stable"
|
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
|
|
|
image: "node:10"
|
|
|
|
propagate-environment: true
|
2019-04-26 16:54:35 +02:00
|
|
|
|
2019-07-11 17:39:22 +02:00
|
|
|
- label: "🌐 i18n"
|
|
|
|
command:
|
2019-07-11 20:49:08 +02:00
|
|
|
- "echo '--- Fetching Dependencies'"
|
2019-07-11 17:39:22 +02:00
|
|
|
- "yarn install"
|
2019-07-11 20:49:08 +02:00
|
|
|
- "echo '+++ Testing i18n output'"
|
2019-07-11 17:39:22 +02:00
|
|
|
- "yarn diff-i18n"
|
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
|
|
|
image: "node:10"
|
|
|
|
|
2019-04-26 17:02:12 +02:00
|
|
|
- wait
|
2019-10-10 11:45:35 +02:00
|
|
|
|
2019-04-26 17:02:12 +02:00
|
|
|
- label: "🐴 Trigger riot-web"
|
|
|
|
trigger: "riot-web"
|
|
|
|
branches: "develop"
|
|
|
|
build:
|
|
|
|
branch: "develop"
|
|
|
|
message: "[react-sdk] ${BUILDKITE_MESSAGE}"
|
|
|
|
async: true
|