Skip to content
This repository was archived by the owner on Sep 15, 2023. It is now read-only.

Commit d4e1d67

Browse files
committed
fix(ci testing): use new way to run xvfb on Travis CI...
In April 2019, Travis changed its default build environment to Xenial. This necessitates some changes to make Travis's testing work. References: * https://blog.travis-ci.com/2019-04-15-xenial-default-build-environment#3-headless-browser-testing * https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-xvfb-to-run-tests-that-require-a-gui
1 parent f914316 commit d4e1d67

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ node_js:
44
- "6.11.1"
55
- "7.2.0"
66
- "8.0.0"
7-
before_script:
8-
# http://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-GUI-(e.g.-a-Web-browser)
9-
- export DISPLAY=:99.0
10-
- sh -e /etc/init.d/xvfb start
7+
dist: xenial
8+
services:
9+
- xvfb
1110
script:
1211
- yarn run dev:test
1312
- yarn run build

0 commit comments

Comments
 (0)