Skip to content

Commit 830275e

Browse files
authored
Merge pull request #1041 from kewde/patch-3
electron osx builds
2 parents d325af5 + 03623ab commit 830275e

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,22 @@ matrix:
144144
apt:
145145
sources: [ 'ubuntu-toolchain-r-test','llvm-toolchain-precise-3.5', 'gcc-multilib', 'g++-multilib', 'libsqlite3-dev:i386' ]
146146
packages: [ 'clang-3.5']
147+
# electron MacOs
148+
- os: osx
149+
compiler: clang
150+
env: NODE_VERSION="6" ELECTRON_VERSION="2.0.1"
151+
- os: osx
152+
compiler: clang
153+
env: NODE_VERSION="6" ELECTRON_VERSION="1.8.4"
154+
- os: osx
155+
compiler: clang
156+
env: NODE_VERSION="6" ELECTRON_VERSION="1.7.12"
157+
- os: osx
158+
compiler: clang
159+
env: NODE_VERSION="6" ELECTRON_VERSION="1.6.2"
160+
- os: osx
161+
compiler: clang
162+
env: NODE_VERSION="6" ELECTRON_VERSION="1.3.14"
147163

148164
env:
149165
global:

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)