2019-03-14 07:42:05 +08:00
|
|
|
steps:
|
|
|
|
- label: ":eslint: Lint"
|
|
|
|
command:
|
2019-03-14 08:33:45 +08:00
|
|
|
- "yarn install"
|
2019-03-14 07:42:05 +08:00
|
|
|
- "yarn lintwithexclusions"
|
|
|
|
plugins:
|
|
|
|
- docker#v3.0.1:
|
|
|
|
image: "node:10"
|
|
|
|
|
2019-03-16 00:33:39 +08:00
|
|
|
# - label: ":chains: End-to-End Tests"
|
2019-03-14 07:56:53 +08:00
|
|
|
# command:
|
|
|
|
# # TODO: Remove hacky chmod for BuildKite
|
|
|
|
# - "chmod +x ./scripts/ci/*.sh"
|
|
|
|
# - "chmod +x ./scripts/*"
|
|
|
|
# - "sudo apt-get install build-essential python2.7-dev libffi-dev python-pip python-setuptools sqlite3 libssl-dev python-virtualenv libjpeg-dev libxslt1-dev"
|
|
|
|
# - "./scripts/ci/install-deps.sh"
|
|
|
|
# - "./scripts/ci/end-to-end-tests.sh"
|
|
|
|
# plugins:
|
|
|
|
# - docker#v3.0.1:
|
|
|
|
# image: "node:10"
|
2019-03-14 07:42:05 +08:00
|
|
|
|
|
|
|
- label: ":karma: Tests"
|
|
|
|
command:
|
2019-03-14 12:11:45 +08:00
|
|
|
# Install chrome
|
|
|
|
- "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-14 07:42:05 +08:00
|
|
|
- "./scripts/ci/install-deps.sh"
|
|
|
|
- "./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"
|
|
|
|
command:
|
2019-03-14 12:11:45 +08:00
|
|
|
# Install chrome
|
|
|
|
- "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-14 07:42:05 +08:00
|
|
|
- "./scripts/ci/install-deps.sh"
|
|
|
|
- "./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
|