sudo: required
dist: trusty
language: node_js
cache: yarn
node_js:
  - lts/*

addons:
  chrome: stable

before_install:
  - npm install -g yarn
  - export CHROME_BIN=chromium-browser
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

before_script:
  - export NODE_OPTIONS=--max_old_space_size=16000
  - yarn install

script:
  - ng lint
  - yarn buildprod
  - ng e2e

dist: bionic
language: node_js
cache: npm
node_js:
  - lts/*

addons:
  chrome: stable

services:
  - xvfb

before_install:
  - export CHROME_BIN=chromium-browser
  - export DISPLAY=:99.0

before_script:
  - export NODE_OPTIONS=--max_old_space_size=16000
  - npm install

script:
  - ng lint
  - npm run buildprod
  - ng e2e

Switch to trusty and yarn->npm
Switch to trusty and yarn->npm
