element-web-Github/.buildkite/pipeline.yaml

87 lines
2.4 KiB
YAML
Raw Normal View History

2019-03-14 08:25:06 +08:00
steps:
- label: ":eslint: JS Lint"
2019-03-14 08:25:06 +08:00
command:
2020-01-09 07:14:01 +08:00
- "yarn install"
- "yarn lint:js"
2019-03-14 08:25:06 +08:00
plugins:
- docker#v3.0.1:
image: "node:12"
# This layer doesn't have a TypeScript linter. This comment is to remind TravisR to fix that.
# - 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:
2020-01-09 07:14:01 +08:00
- "yarn install"
- "yarn lint:types"
plugins:
- docker#v3.0.1:
image: "node:12"
- label: "🛠 Build"
command:
- "echo '--- Fetching Dependencies'"
- "./scripts/fetch-develop.deps.sh --depth 1"
2020-01-09 07:14:01 +08:00
- "yarn install"
- "echo '+++ Building Project'"
- "yarn build"
plugins:
- docker#v3.0.1:
image: "node:12"
2019-03-14 08:25:06 +08: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 08:25:06 +08:00
command:
2019-03-14 09:46:52 +08:00
# Install chrome
- "echo '--- Installing Chrome'"
2019-03-14 09:46:52 +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
- "echo '--- Fetching Dependencies'"
2019-03-14 08:25:06 +08:00
- "./scripts/fetch-develop.deps.sh --depth 1"
- "yarn install"
- "echo '+++ Running Tests'"
2019-03-14 08:25:06 +08:00
- "yarn test"
2019-03-14 09:46:52 +08:00
env:
CHROME_BIN: "/usr/bin/google-chrome-stable"
2019-03-14 08:25:06 +08:00
plugins:
- docker#v3.0.1:
image: "node:10"
2019-03-14 12:23:28 +08:00
propagate-environment: true
2019-04-26 19:21:21 +08:00
- label: ":hammer: Package"
2019-04-26 19:21:21 +08:00
command:
- "echo '--- Fetching Dependencies'"
- "./scripts/fetch-develop.deps.sh --depth 1"
- "yarn install"
- "echo '+++ Packaging'"
- "./scripts/ci_package.sh"
branches: "develop"
2019-04-26 19:21:21 +08:00
artifact_paths: "dist/riot-*.tar.gz"
plugins:
- docker#v3.0.1:
image: "node:10"
2019-07-12 02:45:06 +08:00
- label: "🌐 i18n"
command:
2019-07-12 02:47:50 +08:00
- "echo '--- Fetching Dependencies'"
- "./scripts/fetch-develop.deps.sh --depth 1"
2019-07-12 02:45:06 +08:00
- "yarn install"
2019-07-12 02:47:50 +08:00
- "echo '+++ Testing i18n output'"
2019-07-12 02:45:06 +08:00
- "yarn diff-i18n"
plugins:
- docker#v3.0.1:
image: "node:10"