From 99b6f50a8a3f403e371fd635b029d41479324bc8 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Sun, 6 Dec 2020 16:32:06 -0800 Subject: [PATCH] attempt to fix webkit tests per https://benlimmer.com/2019/01/14/travis-ci-xvfb/ --- .travis.yml | 4 +++- scripts/test-node-webkit.sh | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 955f1bee..d50c3a28 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,9 @@ language: node_js -sudo: false +dist: xenial +services: + - xvfb ##### WARNING # node-pre-gyp tests are not concurrency safe diff --git a/scripts/test-node-webkit.sh b/scripts/test-node-webkit.sh index 02c84be6..48afec95 100755 --- a/scripts/test-node-webkit.sh +++ b/scripts/test-node-webkit.sh @@ -24,7 +24,6 @@ else # assume 64 bit linux wget https://s3.amazonaws.com/node-webkit/v${NODE_WEBKIT_VERSION}/node-webkit-v${NODE_WEBKIT_VERSION}-linux-x64.tar.gz tar xf node-webkit-v${NODE_WEBKIT_VERSION}-linux-x64.tar.gz - export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; export PATH=${BASE}/node-webkit-v0.8.5-linux-x64:${PATH} fi