Fix tests on linux by attaching display to Travis

This commit is contained in:
Ben Gotow 2017-09-27 11:34:59 -07:00
parent 97e36cb1d9
commit a976cf3da6

View file

@ -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