fix(travis): enable fake Xorg window to allow electron testing on Linux

This commit is contained in:
mbilker 2015-11-21 22:45:55 -05:00
parent ad04faab02
commit 40d67b5632
2 changed files with 6 additions and 1 deletions

View file

@ -29,6 +29,10 @@ matrix:
sudo: false
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- echo $CC
- echo $CXX
@ -52,3 +56,4 @@ addons:
- g++-4.8
- git
- libgnome-keyring-dev
- xvfb

View file

@ -362,7 +362,7 @@ module.exports = (grunt) ->
ciTasks = ['output-disk-space', 'download-electron', 'build']
ciTasks.push('dump-symbols') if process.platform isnt 'win32'
ciTasks.push('set-version', 'lint', 'generate-asar')
ciTasks.push('test') if process.platform is 'darwin'
ciTasks.push('test') if process.platform isnt 'win32'
unless process.env.TRAVIS
ciTasks.push('codesign')