Use service xvfb.

This commit is contained in:
Tomoyuki Aota
2019-05-08 20:59:42 +09:00
parent cc80f7f373
commit 4db31e3796

View File

@@ -8,10 +8,12 @@ node_js:
- '10'
dist: xenial
sudo: required
services:
- xvfb
addons:
chrome: stable
before_script:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; fi
- export DISPLAY=:99.0
install:
- npm set progress=false
- npm install