Skip to content

Commit 9081b6d

Browse files
committed
1 parent 635cf15 commit 9081b6d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ os:
3232
- linux
3333
- osx
3434

35-
# Compiling native modules for io.js v3.x.x or Node.js >=v4.0.0 requires a C++11 standard-compliant compiler. Specifically, either gcc >=4.8 or clang >=3.5. Add-ons are Linux-specific.
35+
# Compiling native modules for io.js v3.x.x or Node.js >=v4.0.0 requires a C++11 standard-compliant compiler. Specifically, either gcc >=4.8 or clang >=3.5. Add-ons are Linux-specific. Electron requires a virtual display server (xvfb) on Linux.
3636
addons:
3737
apt:
3838
sources:
@@ -45,6 +45,7 @@ addons:
4545
- g++-5-multilib
4646
- gfortran-5
4747
- gfortran-5-multilib
48+
- xvfb
4849
- unzip
4950

5051

@@ -85,6 +86,8 @@ before_install:
8586
ln -s /usr/bin/gcc-5 $HOME/bin/gcc;
8687
ln -s /usr/bin/g++-5 $HOME/bin/g++;
8788
ln -s /usr/bin/gfortran-5 $HOME/bin/gfortran;
89+
export DISPLAY=':99.0';
90+
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &;
8891
else
8992
brew cask uninstall oclint;
9093
brew update;

0 commit comments

Comments
 (0)