From eb92045cf9a8724a92a39362962fe5d3ffb47f69 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Fri, 23 Apr 2021 21:51:25 +0800 Subject: [PATCH] Fix Travis CI "sh: 0: Can't open /etc/init.d/xvfb" issue --- .travis.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5421563..7d8588b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 \ No newline at end of file +services: + - xvfb \ No newline at end of file