Fix Travis CI "sh: 0: Can't open /etc/init.d/xvfb" issue

This commit is contained in:
Peter Dave Hello 2021-04-23 21:51:25 +08:00
parent bb372ec424
commit eb92045cf9

View File

@ -1,7 +1,5 @@
language: node_js
node_js:
- "8"
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
services:
- xvfb