From 4db31e3796522e00a177e6391dd79cf7097c4987 Mon Sep 17 00:00:00 2001 From: Tomoyuki Aota Date: Wed, 8 May 2019 20:59:42 +0900 Subject: [PATCH] Use service xvfb. --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9bfad5df6..f3c019d99 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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