Skip to content

Commit

Permalink
tests: migrate travis to xenial for modern Chrome support (#9654)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhulce authored and brendankenny committed Sep 11, 2019
1 parent 1e4d8d7 commit a7efa7a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,23 @@ matrix:
- node_js: "10"
- node_js: "12"
if: head_branch IS blank AND branch = master
dist: trusty
cache:
yarn: true
directories:
- node_modules
- lantern-data
- /home/travis/.rvm/gems/
install:
# Ensure we have the latest Chrome stable.
- google-chrome-stable --version
# if our e2e tests fail in the future it might be that we are not compatible
# with the latest puppeteer api so we probably need to run on chromimum
# @see https://github.com/GoogleChrome/lighthouse/pull/4640/files#r171425004
- export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
- yarn --frozen-lockfile
before_script:
- export DISPLAY=:99.0
# see comment above about puppeteer
- export CHROME_PATH="$(which google-chrome-stable)"
- sh -e /etc/init.d/xvfb start
# Print out the Chrome version so we know what we're working with
- google-chrome-stable --version
- yarn build-all
Expand All @@ -48,3 +47,5 @@ after_success:
- yarn codecov
addons:
chrome: stable
services:
- xvfb

0 comments on commit a7efa7a

Please sign in to comment.