Skip to content

Commit

Permalink
chore: install Chrome-related dependencies in Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepinho committed Apr 26, 2017
1 parent e251d23 commit 4959591
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
language: node_js

sudo: required
dist: trusty
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable

before_install:
# setting the path for phantom.js 2.0.0
- export PATH=/usr/local/phantomjs-2.0.0/bin:$PATH
# starting a GUI to run tests, per
# https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- "npm config set spin false"
- "npm install -g npm@^2"

0 comments on commit 4959591

Please sign in to comment.