Skip to content

Commit 90f05d8

Browse files
committed
(refactor/ci): use xvfb-run instead of manual xvfb setup
- per Travis CI's instructions - https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-the-xvfb-run-wrapper - also apt addons doesn't seem to be needed - speeds up CI a bit too bc no apt-get update
1 parent 69e4175 commit 90f05d8

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

.travis.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,5 @@ language: node_js
22
# default is apparently 0.10.48 for some reason O.O
33
node_js: '10.16.0'
44

5-
# add xvfb per Electron CI instructions (https://github.com/electron/electron/blob/master/docs/tutorial/testing-on-headless-ci.md)
6-
addons:
7-
apt:
8-
packages:
9-
- xvfb
10-
11-
install:
12-
# configure xvfb per Electron CI instructions as well
13-
- export DISPLAY=':99.0'
14-
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
15-
# default install command
16-
- npm ci
5+
# run with xvfb bc it's needed for Electron (https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-the-xvfb-run-wrapper)
6+
script: xvfb-run npm test

0 commit comments

Comments
 (0)