sudo: required
dist: trusty
addons:
  apt:
    sources:
      - google-chrome
    packages:
      - google-chrome-stable

language: node_js
node_js: 6

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

jobs:
  include:
    - script: ng test -sr
    - stage: integration
    - script: ng e2e

sudo: required
dist: trusty
addons:
  apt:
    sources:
      - google-chrome
    packages:
      - google-chrome-stable

language: node_js


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

jobs:
  include:
    - script: ng test -sr
      node_js: "6"
      node_js: "node"
    - stage: integration
      script: ng e2e
      node_js: "6"
      node_js: "node"

Set nodejs versions per stage
Set nodejs versions per stage
