2019-03-14 07:42:05 +08:00
|
|
|
steps:
|
2019-12-13 05:37:14 +08:00
|
|
|
- label: ":eslint: JS Lint"
|
2019-03-14 07:42:05 +08:00
|
|
|
command:
|
2019-06-04 23:40:41 +08:00
|
|
|
- "echo '--- Install js-sdk'"
|
2020-01-24 22:21:28 +08:00
|
|
|
- "./scripts/ci/install-deps.sh --ignore-scripts"
|
|
|
|
- "echo '+++ Lint"
|
2019-12-13 05:37:14 +08:00
|
|
|
- "yarn lint:js"
|
2019-03-14 07:42:05 +08:00
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
2019-12-13 05:37:14 +08:00
|
|
|
image: "node:12"
|
|
|
|
|
|
|
|
- label: ":eslint: TS Lint"
|
|
|
|
command:
|
2020-01-24 22:21:28 +08:00
|
|
|
- "echo '--- Install"
|
|
|
|
- "yarn install --ignore-scripts"
|
|
|
|
- "echo '+++ Lint"
|
2019-12-13 05:37:14 +08:00
|
|
|
- "yarn lint:ts"
|
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
|
|
|
image: "node:12"
|
|
|
|
|
|
|
|
- label: ":eslint: Types Lint"
|
|
|
|
command:
|
2020-01-24 22:21:28 +08:00
|
|
|
- "echo '--- Install"
|
|
|
|
- "yarn install --ignore-scripts"
|
|
|
|
- "echo '+++ Lint"
|
2019-12-13 05:37:14 +08:00
|
|
|
- "yarn lint:types"
|
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
|
|
|
image: "node:12"
|
2020-01-24 22:03:31 +08:00
|
|
|
- label: ":stylelint: Style Lint"
|
|
|
|
command:
|
|
|
|
- "echo '--- Install'"
|
|
|
|
- "yarn install --ignore-scripts"
|
|
|
|
- "yarn lint:style"
|
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
|
|
|
image: "node:12"
|
2019-12-13 05:37:14 +08:00
|
|
|
|
2019-12-17 19:53:18 +08:00
|
|
|
- label: ":jest: 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:
|
2020-01-10 07:00:13 +08:00
|
|
|
- "echo '--- Install js-sdk'"
|
2020-01-24 22:21:28 +08:00
|
|
|
# We don't use the babel-ed output for anything so we can --ignore-scripts
|
|
|
|
# to save transpiling the files. We run the transpile step explicitly in
|
|
|
|
# the 'build' job.
|
|
|
|
- "./scripts/ci/install-deps.sh --ignore-scripts"
|
2019-03-21 03:10:47 +08:00
|
|
|
- "echo '+++ Running Tests'"
|
2019-12-17 20:16:40 +08:00
|
|
|
- "yarn test"
|
2019-03-14 07:42:05 +08:00
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
2020-01-10 07:00:13 +08:00
|
|
|
image: "node:12"
|
2019-03-14 07:42:05 +08:00
|
|
|
|
2019-12-13 05:37:14 +08:00
|
|
|
- label: "🛠 Build"
|
|
|
|
command:
|
2020-01-24 22:21:28 +08:00
|
|
|
- "echo '+++ Install & Build'"
|
|
|
|
- "yarn install"
|
2019-12-13 05:37:14 +08:00
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
|
|
|
image: "node:12"
|
2019-03-14 07:42:05 +08:00
|
|
|
|
2020-01-10 08:55:57 +08: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:
|
|
|
|
- "echo '--- Install js-sdk'"
|
2020-01-24 22:21:28 +08:00
|
|
|
- "./scripts/ci/install-deps.sh --ignore-scripts"
|
2020-01-14 04:36:35 +08:00
|
|
|
- "echo '+++ Running Tests'"
|
2020-01-10 08:55:57 +08:00
|
|
|
- "./scripts/ci/end-to-end-tests.sh"
|
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
|
|
|
image: "matrixdotorg/riotweb-ci-e2etests-env:latest"
|
|
|
|
propagate-environment: true
|
2020-01-21 07:23:33 +08:00
|
|
|
workdir: "/workdir/matrix-react-sdk"
|
2020-01-22 23:03:48 +08:00
|
|
|
retry:
|
|
|
|
automatic:
|
|
|
|
- exit_status: 1 # retry end-to-end tests once as Puppeteer sometimes fails
|
2020-01-22 23:05:40 +08:00
|
|
|
limit: 1
|
2020-01-10 08:55:57 +08: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"
|
|
|
|
command:
|
|
|
|
- "echo '+++ Running Tests'"
|
|
|
|
- "./scripts/ci/riot-unit-tests.sh"
|
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
|
|
|
image: "node:10"
|
|
|
|
propagate-environment: true
|
2020-01-21 07:12:59 +08:00
|
|
|
workdir: "/workdir/matrix-react-sdk"
|
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'"
|
2020-01-24 22:21:28 +08:00
|
|
|
- "yarn install --ignore-scripts"
|
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
|