Skip to content

Commit

Permalink
[publish binary]
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Mar 19, 2020
1 parent acc2bce commit 6a281a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ before_script:
# package & publish
# ------------------------

- if [[ $PUBLISH_BINARY == true ]]; then npm run node-pre-gyp package publish; fi;
- if [[ $PUBLISH_BINARY == true ]]; then ./node_modules/.bin/node-pre-gyp package publish; fi;

# clean-up
# ------------------------

- npm run node-pre-gyp clean
- ./node_modules/.bin/node-pre-gyp clean
- node-gyp clean

script:
Expand All @@ -86,14 +86,14 @@ script:
- INSTALL_RESULT=0
- if [[ $PUBLISH_BINARY == true ]]; then INSTALL_RESULT=$(npm install --fallback-to-build=false > /dev/null)$? || true; fi;

- npm run node-pre-gyp clean
- ./node_modules/.bin/node-pre-gyp clean

# failure?
# ------------------------
# if install returned non zero (errored) then we first unpublish and then
# call false so travis will bail at this line.

- if [[ $INSTALL_RESULT != 0 ]]; then npm run node-pre-gyp unpublish; fi;
- if [[ $INSTALL_RESULT != 0 ]]; then ./node_modules/.bin/node-pre-gyp unpublish; fi;
- if [[ $INSTALL_RESULT != 0 ]]; then echo "returned $INSTALL_RESULT";false; fi;

after_success:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dependencies": {
"bindings": "^1.5.0",
"nan": "^2.12.1",
"node-pre-gyp": "latest"
"node-pre-gyp": "^0.14.0"
},
"os": [
"darwin"
Expand Down

0 comments on commit 6a281a7

Please sign in to comment.