element-web/.buildkite/pipeline.yaml

120 lines
3.3 KiB
YAML
Raw Normal View History

2019-03-14 02:42:05 +03:00
steps:
- label: ":eslint: JS Lint"
2019-03-14 02:42:05 +03:00
command:
2020-01-24 17:58:46 +03:00
# We fetch the develop js-sdk to get our latest eslint rules
- "echo '--- Install js-sdk'"
- "./scripts/ci/install-deps.sh --ignore-scripts"
2020-01-24 17:51:11 +03:00
- "echo '+++ Lint'"
- "yarn lint:js"
2019-03-14 02:42:05 +03:00
plugins:
- docker#v3.0.1:
image: "node:12"
- label: ":eslint: TS Lint"
command:
2020-01-24 17:56:00 +03:00
- "echo '--- Install'"
- "yarn install --ignore-scripts"
2020-01-24 17:51:11 +03:00
- "echo '+++ Lint'"
- "yarn lint:ts"
plugins:
- docker#v3.0.1:
image: "node:12"
- label: ":eslint: Types Lint"
command:
2020-01-24 17:51:11 +03:00
- "echo '--- Install'"
- "yarn install --ignore-scripts"
2020-01-24 17:51:11 +03:00
- "echo '+++ Lint'"
- "yarn lint:types"
plugins:
- docker#v3.0.1:
image: "node:12"
2020-01-24 17:03:31 +03:00
- label: ":stylelint: Style Lint"
command:
- "echo '--- Install'"
- "yarn install --ignore-scripts"
- "yarn lint:style"
plugins:
- docker#v3.0.1:
image: "node:12"
- label: ":jest: 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 02:42:05 +03:00
command:
- "echo '--- Install js-sdk'"
# 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"
2020-01-24 17:36:12 +03:00
- "yarn run reskindex"
2019-03-20 22:10:47 +03:00
- "echo '+++ Running Tests'"
- "yarn test"
2019-03-14 02:42:05 +03:00
plugins:
- docker#v3.0.1:
image: "node:12"
2019-03-14 02:42:05 +03:00
- label: "🛠 Build"
command:
- "echo '+++ Install & Build'"
- "yarn install"
plugins:
- docker#v3.0.1:
image: "node:12"
2019-03-14 02:42:05 +03: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'"
- "./scripts/ci/install-deps.sh --ignore-scripts"
- "echo '+++ Running Tests'"
- "./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 02:23:33 +03:00
workdir: "/workdir/matrix-react-sdk"
retry:
automatic:
- exit_status: 1 # retry end-to-end tests once as Puppeteer sometimes fails
2020-01-22 18:05:40 +03:00
limit: 1
- 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
workdir: "/workdir/matrix-react-sdk"
- label: "🌐 i18n"
command:
2019-07-11 21:49:08 +03:00
- "echo '--- Fetching Dependencies'"
- "yarn install --ignore-scripts"
2019-07-11 21:49:08 +03:00
- "echo '+++ Testing i18n output'"
- "yarn diff-i18n"
plugins:
- docker#v3.0.1:
image: "node:10"
2019-04-26 18:02:12 +03:00
- wait
2019-10-10 12:45:35 +03:00
2019-04-26 18:02:12 +03:00
- label: "🐴 Trigger riot-web"
trigger: "riot-web"
branches: "develop"
build:
branch: "develop"
message: "[react-sdk] ${BUILDKITE_MESSAGE}"
async: true