mirror of
https://github.com/mapbox/node-fontnik.git
synced 2026-01-18 15:54:55 +00:00
28 lines
579 B
Bash
Executable File
28 lines
579 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Inspect binary.
|
|
if [[ $(uname -s) == "Linux" ]]; then
|
|
ldd ./lib/fontnik.node
|
|
else
|
|
otool -L ./lib/fontnik.node
|
|
fi
|
|
|
|
COMMIT_MESSAGE=$(git show -s --format=%B $TRAVIS_COMMIT | tr -d '\n')
|
|
|
|
if test "${COMMIT_MESSAGE#*'[publish binary]'}" != "$COMMIT_MESSAGE" && [[ ${COVERAGE} == false ]];
|
|
then
|
|
|
|
npm install aws-sdk
|
|
./node_modules/.bin/node-pre-gyp package testpackage
|
|
./node_modules/.bin/node-pre-gyp publish info
|
|
|
|
rm -rf build
|
|
rm -rf lib/binding
|
|
npm install --fallback-to-build=false
|
|
npm test
|
|
|
|
node-pre-gyp info
|
|
fi
|