Skip to content

Commit

Permalink
Update .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Feb 10, 2018
1 parent 27e16c5 commit fae9d79
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
sudo: required
language: node_js
sudo: false
node_js:
- "8"

addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
- 'node'
- '8'
- '6'
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3

install:
- npm install
script:
- npm run test
- "sudo chown root /opt/google/chrome/chrome-sandbox"
- "sudo chmod 4755 /opt/google/chrome/chrome-sandbox"
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
addons:
chrome: stable

0 comments on commit fae9d79

Please sign in to comment.