Skip to content

Commit 69e4175

Browse files
committed
(fix/ci): install & configure xvfb so Electron doesn't hang
- jest would just hang w/ no errors if xvfb wasn't configured - https://travis-ci.org/agilgur5/physijs-webpack/builds/617354543 - for more details see #15 (comment) - this fix is directly from the Electron CI instructions - https://github.com/electron/electron/blob/master/docs/tutorial/testing-on-headless-ci.md - not totally sure why it needs xvfb for headless, but it runs now
1 parent d16f0de commit 69e4175

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
language: node_js
22
# default is apparently 0.10.48 for some reason O.O
33
node_js: '10.16.0'
4+
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

0 commit comments

Comments
 (0)