language: node_js
node_js:
  - "6"

branches:
  only:
    - master

dist: trusty
addons:
  apt:
    packages:
      - google-chrome-stable

cache:
  directories:
    - node_modules

before_script:
  # Chrome settings
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - sleep 3

script:
  - npm run lint
  - npm run test.single
  - npm run build
  - npm run e2e
  - npm run deploy

language: node_js
node_js:
  - "6"

branches:
  only:
    - master

dist: trusty
addons:
  apt:
    packages:
      - google-chrome-stable

cache:
  directories:
    - node_modules

before_script:
  # Chrome settings
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - sleep 3

script:
  - npm run lint
  - npm run test.single
  - npm run e2e

after_success:
  - npm run build
  - npm run deploy

Move build and deploy to after success
Move build and deploy to after success
