mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-07 16:48:02 +08:00
fix(travis): only run Xvfb on Linux
Noticed in my Travis build that the build failed on OS X because its missing the Xvfb startup files present on Ubuntu
This commit is contained in:
parent
40d67b5632
commit
7f44ae2d3f
1 changed files with 4 additions and 4 deletions
|
@ -29,10 +29,6 @@ matrix:
|
|||
|
||||
sudo: false
|
||||
|
||||
before_script:
|
||||
- export DISPLAY=:99.0
|
||||
- sh -e /etc/init.d/xvfb start
|
||||
|
||||
install:
|
||||
- echo $CC
|
||||
- echo $CXX
|
||||
|
@ -43,6 +39,10 @@ install:
|
|||
- nvm install $NODE_VERSION
|
||||
- nvm use --delete-prefix $NODE_VERSION
|
||||
|
||||
before_script:
|
||||
- [ "${TRAVIS_OS_NAME}" == "linux" ] && export DISPLAY=:99.0
|
||||
- [ "${TRAVIS_OS_NAME}" == "linux" ] && sh -e /etc/init.d/xvfb start
|
||||
|
||||
script: script/cibuild
|
||||
|
||||
addons:
|
||||
|
|
Loading…
Reference in a new issue