Skip to content

Commit

Permalink
Fix: Travis CI being unable to start GUI tests (#473)
Browse files Browse the repository at this point in the history
* Fix: Update travis.yml failing to start xvfb

Travis CI updated their Xenial build environment, which introduced a new way to start up XVFB for front-end builds. This broke existing builds that used the approach based on their documentation.

* Use Chrome addon from TravisCI

* Get Google Chrome from apt-get

* Fix out-of-date chrome path in travis.yml
  • Loading branch information
KraigWalker authored and cwelch5 committed Dec 6, 2019
1 parent 420810c commit 8176b17
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .travis.yml
@@ -1,5 +1,15 @@
language: node_js

services:
- xvfb

addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable

node_js:
- 'node'
- 10
Expand All @@ -9,9 +19,7 @@ node_js:
- 6

before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- export CHROME_BIN=/usr/bin/google-chrome

cache:
yarn: true
Expand Down

0 comments on commit 8176b17

Please sign in to comment.