Skip to content

Commit b117821

Browse files
committed
Fix xvfb configuration
1 parent cc9dffc commit b117821

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,16 @@ before_install:
8686
ln -s /usr/bin/gcc-5 $HOME/bin/gcc;
8787
ln -s /usr/bin/g++-5 $HOME/bin/g++;
8888
ln -s /usr/bin/gfortran-5 $HOME/bin/gfortran;
89-
export DISPLAY=':99.0';
90-
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &;
9189
else
9290
brew cask uninstall oclint;
9391
brew update;
9492
brew install -v gcc;
9593
fi
9694

95+
# Configure the virtual display server (needed for electron):
96+
- export DISPLAY=':99.0'
97+
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
98+
9799
# Print debug info:
98100
- echo "$($CC --version)"
99101
- echo "$($CXX --version)"

0 commit comments

Comments
 (0)