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