language: node_js
node_js:
 - "8"
services:
 - xvfb
before_script:
 - yarn danger ci
 - npm install grunt-cli -g
 - "export DISPLAY=:99.0"
 - sleep 5
script:
- grunt
- npm run test:unit
- npm run test:e2e
after_script:
 - npm list
cache:
 directories:
  - node_modules

dist: trusty
language: node_js
node_js:
 - "8"
before_script:
 - yarn danger ci
 - npm install grunt-cli -g
 - "export DISPLAY=:99.0"
 - "sh -e /etc/init.d/xvfb start"
 - sleep 5
script:
- grunt
- npm run test:unit
- npm run test:e2e
after_script:
 - npm list
cache:
 directories:
  - node_modules

Fix Build Failed in Travis CI:
Fix Build Failed in Travis CI:

This commit set trusty as image to use and revert this commit changes

Add xvfb as service: 3c31460f2fd193864fdc69781d8041f1626b6937
Remove failing script: d5cb60b19cea7851b0d42ee2d028b136b08a6ec1
