element-web/.buildkite/pipeline.yaml

92 lines
3.0 KiB
YAML
Raw Normal View History

2019-03-14 00:42:05 +01:00
steps:
- label: ":eslint: Lint"
command:
- "yarn install"
2019-03-14 00:42:05 +01:00
- "yarn lintwithexclusions"
2019-04-09 16:08:04 +02:00
- "yarn stylelint"
2019-03-14 00:42:05 +01:00
plugins:
- docker#v3.0.1:
image: "node:10"
2019-04-04 10:35:47 +02:00
- label: ":chains: End-to-End Tests"
2019-04-11 16:16:29 +02:00
agents:
# We use a medium sized instance instead of the normal small ones because
# e2e tests otherwise take +-8min
queue: "medium"
2019-04-04 10:35:47 +02:00
command:
# TODO: Remove hacky chmod for BuildKite
- "echo '--- Setup'"
2019-04-04 10:35:47 +02:00
- "chmod +x ./scripts/ci/*.sh"
- "chmod +x ./scripts/*"
- "echo '--- Install js-sdk'"
2019-04-04 10:35:47 +02:00
- "./scripts/ci/install-deps.sh"
- "./scripts/ci/end-to-end-tests.sh"
plugins:
- docker#v3.0.1:
image: "matrixdotorg/riotweb-ci-e2etests-env:latest"
propagate-environment: true
2019-03-14 00:42:05 +01:00
- label: ":karma: Tests"
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:
2019-03-14 05:11:45 +01:00
# Install chrome
2019-03-20 20:10:47 +01:00
- "echo '--- Installing Chrome'"
2019-03-14 05:11:45 +01:00
- "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"
# Run tests
# 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"
2019-03-20 20:10:47 +01:00
- "echo '+++ Running Tests'"
2019-03-14 00:42:05 +01:00
- "./scripts/ci/unit-tests.sh"
2019-03-14 05:11:45 +01:00
env:
CHROME_BIN: "/usr/bin/google-chrome-stable"
2019-03-14 00:42:05 +01:00
plugins:
- docker#v3.0.1:
image: "node:10"
propagate-environment: true
2019-03-14 00:42:05 +01:00
- 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"
2019-03-14 00:42:05 +01:00
command:
2019-03-14 05:11:45 +01:00
# Install chrome
2019-03-20 20:10:47 +01:00
- "echo '--- Installing Chrome'"
2019-03-14 05:11:45 +01:00
- "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"
# Run tests
# 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"
2019-03-20 20:10:47 +01:00
- "echo '+++ Running Tests'"
2019-03-14 00:42:05 +01:00
- "./scripts/ci/riot-unit-tests.sh"
2019-03-14 05:11:45 +01:00
env:
CHROME_BIN: "/usr/bin/google-chrome-stable"
2019-03-14 00:42:05 +01:00
plugins:
- docker#v3.0.1:
image: "node:10"
propagate-environment: true
2019-04-26 17:02:12 +02:00
- wait
- label: "🐴 Trigger riot-web"
trigger: "riot-web"
branches: "develop"
build:
branch: "develop"
message: "[react-sdk] ${BUILDKITE_MESSAGE}"
async: true