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"
    - stage: deploy
      script: ng build -prod
      deploy:
        provider: pages
        skip_cleanup: true
        local_dir: dist
        github_token: $GITHUB_OAUTH_TOKEN
        on:
          branch: master

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"
    - stage: deploy
      node_js: "node"
      script: ng build -prod
      deploy:
        provider: pages
        skip_cleanup: true
        local_dir: dist
        github_token: $GITHUB_OAUTH_TOKEN
        on:
          branch: master

Set node version for deploy
Set node version for deploy
