-
Notifications
You must be signed in to change notification settings - Fork 35
/
.travis.yml
74 lines (68 loc) · 2.65 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
os:
- osx
language: node_js
node_js:
- "stable"
env:
matrix:
# node
- RUNTIME="node" RVERSION="6.14.2" ARCH="x64"
- RUNTIME="node" RVERSION="6.14.2" ARCH="ia32"
- RUNTIME="node" RVERSION="8.12.0" ARCH="x64"
- RUNTIME="node" RVERSION="8.12.0" ARCH="ia32"
- RUNTIME="node" RVERSION="9.11.2" ARCH="x64"
- RUNTIME="node" RVERSION="9.11.2" ARCH="ia32"
- RUNTIME="node" RVERSION="10.11.0" ARCH="x64"
- RUNTIME="node" RVERSION="10.11.0" ARCH="ia32"
# electron
- RUNTIME="electron" RVERSION="2.0.0" ARCH="x64" DIST_URL=https://atom.io/download/atom-shell
- RUNTIME="electron" RVERSION="2.0.0" ARCH="ia32" DIST_URL=https://atom.io/download/atom-shell
- RUNTIME="electron" RVERSION="3.0.0" ARCH="x64" DIST_URL=https://atom.io/download/atom-shell
- RUNTIME="electron" RVERSION="3.0.0" ARCH="ia32" DIST_URL=https://atom.io/download/atom-shell
matrix:
include:
- osx_image: xcode7.3
exclude:
- osx_image: xcode7.3
env: RUNTIME="node" RVERSION="8.12.0" ARCH="x64"
- osx_image: xcode7.3
env: RUNTIME="node" RVERSION="8.12.0" ARCH="ia32"
- osx_image: xcode7.3
env: RUNTIME="node" RVERSION="9.11.2" ARCH="x64"
- osx_image: xcode7.3
env: RUNTIME="node" RVERSION="9.11.2" ARCH="ia32"
- osx_image: xcode7.3
env: RUNTIME="node" RVERSION="10.11.0" ARCH="x64"
- osx_image: xcode7.3
env: RUNTIME="node" RVERSION="10.11.0" ARCH="ia32"
- osx_image: xcode7.3
env: RUNTIME="electron" RVERSION="2.0.0" ARCH="x64"
- osx_image: xcode7.3
env: RUNTIME="electron" RVERSION="2.0.0" ARCH="ia32"
- osx_image: xcode7.3
env: RUNTIME="electron" RVERSION="3.0.0" ARCH="x64"
- osx_image: xcode7.3
env: RUNTIME="electron" RVERSION="3.0.0" ARCH="ia32"
install:
- export NODE_VERSION=$RVERSION
- if [[ "$RUNTIME" == "electron" ]]; then export NODE_VERSION=10.11.0; fi
- nvm install $NODE_VERSION
- nvm use $NODE_VERSION
- yarn
# build from source
- yarn build:source
script:
- PUBLISH_BINARY=false
# if we are building a tag then publish
- if [[ $TRAVIS_BRANCH == `git describe --tags --always HEAD` ]]; then PUBLISH_BINARY=true; fi;
# but not on xcode7.3
- if [[ "$TRAVIS_OSX_IMAGE" == "xcode7.3" ]]; then PUBLISH_BINARY=false; fi
- >
if [ "$PUBLISH_BINARY" == true ]; then
yarn global add node-pre-gyp [email protected]
yarn build:source
node-pre-gyp configure --runtime=$RUNTIME --target=$RVERSION --target_arch=$ARCH --dist-url=$DIST_URL
node-pre-gyp build --runtime=$RUNTIME --target=$RVERSION --target_arch=$ARCH --dist-url=$DIST_URL
node-pre-gyp package --runtime=$RUNTIME --target=$RVERSION --target_arch=$ARCH --dist-url=$DIST_URL
node-pre-gyp-github publish
fi