sudo: required
dist: trusty
language: node_js
node_js:
  - '6.9.4'

branches:
  only:
  - master

apt:
  sources:
    - google-chrome
  packages:
    - google-chrome-stable
    - google-chrome-beta

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

before_script:
  - npm install -g angular-cli
  - npm install -g karma
  - npm install
  - ng build

script: karma start config/karma.conf.js --single-run
sudo: required
dist: trusty
language: node_js
node_js:
  - '6.9.4'

branches:
  only:
  - master

apt:
  sources:
    - google-chrome
  packages:
    - google-chrome-stable
    - google-chrome-beta

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

before_script:
  - npm install -g @angular/cli
  - npm install -g karma
  - npm install
  - ng build

script: karma start config/karma.conf.js --single-run
Use right version of angular CLI.
Use right version of angular CLI.
