2020-10-15 14:46:14 +00:00
|
|
|
image: "node:12-slim"
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
|
2020-10-15 15:34:08 +00:00
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- node_modules/
|
|
|
|
|
2020-10-15 14:46:14 +00:00
|
|
|
before_script:
|
|
|
|
# Install dependencies
|
|
|
|
- apt-get update
|
|
|
|
- apt-get install -y git python3 build-essential libxtst6
|
|
|
|
|
|
|
|
# Prepare Chrome for puppeteer
|
|
|
|
- apt-get install -y wget gnupg
|
|
|
|
- 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 fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 --no-install-recommends
|
|
|
|
|
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- npm ci
|
|
|
|
- npm run lint
|
|
|
|
- npm test
|