Skip to content

Commit 6b7ba93

Browse files
authored
Merge pull request #85 from lgeiger/travis
Simplify CI builds
2 parents 5e60ae3 + 79814bc commit 6b7ba93

File tree

3 files changed

+16
-19
lines changed

3 files changed

+16
-19
lines changed

.travis.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
language: c
1+
language: node_js
22
sudo: false
33

44
addons:
@@ -9,33 +9,31 @@ addons:
99
- gcc-4.9
1010
- g++-4.9
1111

12-
os:
13-
- linux
14-
- osx
15-
12+
matrix:
13+
include:
14+
- node_js: "6"
15+
env: DEPLOY="true"
16+
- node_js: "6"
17+
env: ELECTRON="1.1.3"
18+
- node_js: "6"
19+
env: ELECTRON="1.4.4" REBUILD="true"
20+
- os: osx
21+
node_js: "6"
22+
env: DEPLOY="true"
1623
env:
17-
matrix:
18-
- NODE_VERSION="6" DEPLOY="true"
19-
- NODE_VERSION="6" ELECTRON="1.1.3"
20-
- NODE_VERSION="6" ELECTRON="1.4.4" REBUILD="true"
2124
global:
2225
- GH_REF: github.com/nteract/zmq-prebuilt.git
2326
- secure: AMY9chDNyNawxPhxAksCREhbQoOmphQKo2hDuYIPXBCUNF6Zik969QlB07TVjo+Bo0KVEbG4ANTdI0FkFIhg4MuJIWUkW30ZDyCSovUx8zyWB/7IN23A4Cx4p4ZnKjezTHUQpZ9InRIZzy9kOR+215IIBP6GfxbUY89eDA6ARElcv1rwDjZqSnLAxfie6v80vIbhWxNK4kQjiEyIez5eWBjRg4//dmb63TvJjc78GFTaqmh6lRIApAyA0uKka14XR/PJw5IpDR+0Q2omHl4t4zbu9MdVNYMSD+c6iNxOq3fqZJwnyJ1ELErbtR8oeKgZX1SOew5QTCUZWQsa+ySYTCzUnhWjhCgN6W0ciVtT2PslS/ZcvnrGGIxJAOmTZwINw8sAp8yYdY9QCJOGdB5ah2oUBLGKElcFGqSblohXUEM1tXeRchmpXiiAxnPNtxc6lkZzz6NxDl2OFXSmjMS4Cr8cA//Bn6gM04xRJyETy86/8KDoL+ENc7gkeiuYUOFqkAn5X8PrqPdsPmF7yA61IF1ru/OgtiuCh+eqnzZKBPImJo2KfUIqVuRi/6eUaDfWLT7d/J84Vbe3p2nPxoFd2pSw60f/lIkzFSRZx3vBjQiW2MVUN7ZTdawMOzE4TpIV7rDOkKe7qJJobquJEjd2X9Z+8JiTYXK2pPN2GceiqAM=
2427

2528
before_install:
2629
- export DISPLAY=':99.0'
2730
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
28-
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash
29-
- source ~/.nvm/nvm.sh
30-
- nvm install $NODE_VERSION
31-
- nvm use $NODE_VERSION
3231
- test "$(uname)" = "Darwin" || export CXX=g++-4.9 CC=gcc-4.9
3332

3433
install:
3534
- npm install
3635
- '[ -z "$ELECTRON" ] || npm install electron-prebuilt@${ELECTRON}'
37-
- '[ -z "$REBUILD" ] || npm install -g node-gyp'
38-
- '[ -z "$REBUILD" ] || node-gyp rebuild --runtime=electron --target=${ELECTRON} --disturl=https://atom.io/download/atom-shell --build-from-source'
36+
- '[ -z "$REBUILD" ] || ./node_modules/node-gyp/bin/node-gyp.js rebuild --runtime=electron --target=${ELECTRON} --disturl=https://atom.io/download/atom-shell --build-from-source'
3937

4038
script: if [[ -z "$ELECTRON" ]]; then travis_retry npm run coverage; else travis_retry npm run test:electron; fi
4139

appveyor.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,15 @@ install:
1717
- ps: Install-Product node $env:nodejs_version $env:platform
1818
- npm install
1919
- IF DEFINED ELECTRON (npm install electron-prebuilt@%ELECTRON%)
20-
- IF DEFINED ELECTRON (npm install -g node-gyp)
2120
# We always need to rebuild for electron even for electron <= 1.1.3
22-
- IF DEFINED ELECTRON (node-gyp rebuild --runtime=electron --target=%ELECTRON% --disturl=https://atom.io/download/atom-shell --build-from-source)
21+
- IF DEFINED ELECTRON (node_modules\.bin\node-gyp rebuild --runtime=electron --target=%ELECTRON% --disturl=https://atom.io/download/atom-shell --build-from-source)
2322

2423

2524
test_script:
2625
- IF DEFINED ELECTRON (appveyor-retry call npm run test:electron) ELSE (appveyor-retry call npm test)
2726

2827
deploy_script:
29-
- IF "%deploy%;%appveyor_repo_tag%"=="true;true" (npm install prebuild -g & prebuild --all -u %GITHUB_TOKEN%)
28+
- IF "%deploy%;%appveyor_repo_tag%"=="true;true" (node_modules\.bin\prebuild --all -u %GITHUB_TOKEN%)
3029

3130
notifications:
3231
- provider: Slack

scripts/publish_docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_BRANCH == "master" && $DEPLOY == "true" && $TRAVIS_OS_NAME == "linux" ]]
2+
if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_REPO_SLUG == 'zeromq/zeromq.js' && $TRAVIS_BRANCH == "master" && $DEPLOY == "true" && $TRAVIS_OS_NAME == "linux" ]]
33
then
44
npm run build:docs
55

0 commit comments

Comments
 (0)