Skip to content

Commit 03623ab

Browse files
authored
create virtual x frame buffer
1 parent 663410b commit 03623ab

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/build_against_electron.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ function publish() {
1919
function electron_pretest() {
2020
npm install -g electron@${ELECTRON_VERSION}
2121
npm install -g electron-mocha
22-
sh -e /etc/init.d/xvfb start
22+
if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
23+
(sudo Xvfb :99 -ac -screen 0 1024x768x8; echo ok )&
24+
else
25+
sh -e /etc/init.d/xvfb start
26+
fi
27+
2328
sleep 3
2429
}
2530

0 commit comments

Comments
 (0)