[node] Build OS X on Bitrise

This commit is contained in:
John Firebaugh
2016-01-20 14:03:45 -08:00
parent 79069d13b4
commit 47ebf0fd59
4 changed files with 66 additions and 12 deletions

View File

@@ -10,10 +10,9 @@ else
otool -L ./lib/mapbox-gl-native.node
fi
COMMIT_MESSAGE=$(git show -s --format=%B $TRAVIS_COMMIT | tr -d '\n')
PACKAGE_JSON_VERSION=$(node -e "console.log(require('./package.json').version)")
if [[ ${TRAVIS_TAG} == node-v${PACKAGE_JSON_VERSION} ]] || test "${COMMIT_MESSAGE#*'[publish binary]'}" != "$COMMIT_MESSAGE"; then
if [[ ${TRAVIS_TAG} == node-v${PACKAGE_JSON_VERSION} ]]; then
source ~/.nvm/nvm.sh
nvm use $NODE_VERSION