From a976cf3da6ffdb44bd6209da5aa304d5063a4334 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Wed, 27 Sep 2017 11:34:59 -0700 Subject: [PATCH] Fix tests on linux by attaching display to Travis --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index ca9e857bf..a4868f6d7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -76,6 +76,9 @@ before_install: DISPLAY=nothing:0 git submodule update --init mailsync +before_script: + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start +extension RANDR; fi + script: - npm run ci-setup-mac-keychain - npm run lint