Use service xvfb.
This commit is contained in:
@@ -8,10 +8,12 @@ node_js:
|
|||||||
- '10'
|
- '10'
|
||||||
dist: xenial
|
dist: xenial
|
||||||
sudo: required
|
sudo: required
|
||||||
|
services:
|
||||||
|
- xvfb
|
||||||
addons:
|
addons:
|
||||||
chrome: stable
|
chrome: stable
|
||||||
before_script:
|
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:
|
install:
|
||||||
- npm set progress=false
|
- npm set progress=false
|
||||||
- npm install
|
- npm install
|
||||||
|
|||||||
Reference in New Issue
Block a user