Skip to content

Commit

Permalink
(fix): Run tests that require a GUI with xvfb
Browse files Browse the repository at this point in the history
Under the `xenial` or `bionic` distribution we just need to add the
`xvfb` service.

Reference: https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-xvfb-to-run-tests-that-require-a-gui
  • Loading branch information
milmazz committed Jul 30, 2019
1 parent e9e261b commit 2667bbc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ stages:
- test
- check js

services:
- xvfb

env:
global:
- MIX_ENV=test
- DISPLAY=:99.0
- NODE_VERSION="10.10.0"

before_script:
- sh -e /etc/init.d/xvfb start

cache:
directories:
- node_modules
Expand Down

0 comments on commit 2667bbc

Please sign in to comment.