sudo: required
dist: trusty
language: node_js
cache:
  directories:
    - node_modules
notifications:
  email: false
addons:
  apt:
    sources:
      - google-chrome
    packages:
      - google-chrome-stable
node_js:
  - '5'
  - '4'

before_install:
 - export DISPLAY=:99.0
 - sh -e /etc/init.d/xvfb start
script:
  - npm run test
branches:
  only:
    - master

sudo: required
dist: trusty
language: node_js
cache:
  directories:
    - node_modules
notifications:
  email: false
addons:
  apt:
    sources:
      - google-chrome
    packages:
      - google-chrome-stable
node_js:
  - '5'
  - '4'

before_install:
 - export DISPLAY=:99.0
 - sh -e /etc/init.d/xvfb start
 - npm install -g npm@3
script:
  - npm run test
branches:
  only:
    - master

Switch to npm@3 to avoid peerDeps issues
Switch to npm@3 to avoid peerDeps issues
