77 lines
3.2 KiB
YAML
77 lines
3.2 KiB
YAML
steps:
|
|
- label: ":eslint: Lint"
|
|
command:
|
|
- "yarn install"
|
|
- "yarn lintwithexclusions"
|
|
plugins:
|
|
- docker#v3.0.1:
|
|
image: "node:10"
|
|
|
|
- label: ":chains: End-to-End Tests"
|
|
command:
|
|
# TODO: Remove hacky chmod for BuildKite
|
|
- "chmod +x ./scripts/ci/*.sh"
|
|
- "chmod +x ./scripts/*"
|
|
- "apt-get update"
|
|
- "apt-get -y install build-essential python3-dev libffi-dev python-pip python-setuptools sqlite3 libssl-dev python-virtualenv libjpeg-dev libxslt1-dev uuid-runtime"
|
|
# dependencies for chrome (installed by puppeteer)
|
|
- "apt-get -y install gconf-service libasound2 libatk1.0-0 libatk-bridge2.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget"
|
|
- "./scripts/ci/install-deps.sh"
|
|
- "./scripts/ci/end-to-end-tests.sh"
|
|
plugins:
|
|
- docker#v3.0.1:
|
|
image: "node:10"
|
|
|
|
- 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"
|
|
command:
|
|
# Install chrome
|
|
- "echo '--- Installing 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
|
|
# TODO: Remove hacky chmod for BuildKite
|
|
- "chmod +x ./scripts/ci/*.sh"
|
|
- "chmod +x ./scripts/*"
|
|
- "echo '--- Installing Dependencies'"
|
|
- "./scripts/ci/install-deps.sh"
|
|
- "echo '+++ Running Tests'"
|
|
- "./scripts/ci/unit-tests.sh"
|
|
env:
|
|
CHROME_BIN: "/usr/bin/google-chrome-stable"
|
|
plugins:
|
|
- docker#v3.0.1:
|
|
image: "node:10"
|
|
propagate-environment: true
|
|
|
|
- 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:
|
|
# Install chrome
|
|
- "echo '--- Installing 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
|
|
# TODO: Remove hacky chmod for BuildKite
|
|
- "chmod +x ./scripts/ci/*.sh"
|
|
- "chmod +x ./scripts/*"
|
|
- "echo '--- Installing Dependencies'"
|
|
- "./scripts/ci/install-deps.sh"
|
|
- "echo '+++ Running Tests'"
|
|
- "./scripts/ci/riot-unit-tests.sh"
|
|
env:
|
|
CHROME_BIN: "/usr/bin/google-chrome-stable"
|
|
plugins:
|
|
- docker#v3.0.1:
|
|
image: "node:10"
|
|
propagate-environment: true
|