[build] Publish node packages with RelWithDebInfo
This commit is contained in:
@@ -64,7 +64,7 @@ workflows:
|
||||
brew install cmake awscli node@4 node@6
|
||||
brew link node@4 --force
|
||||
gem install xcpretty --no-rdoc --no-ri
|
||||
export BUILDTYPE=Release
|
||||
export BUILDTYPE=RelWithDebInfo
|
||||
export PUBLISH=true
|
||||
make test-node && ./platform/node/scripts/after_success.sh
|
||||
brew unlink node@4
|
||||
|
||||
@@ -3,10 +3,13 @@
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
||||
if [[ "${PUBLISH:-}" == "true" ]]; then
|
||||
if [[ "${BUILDTYPE}" == "Release" ]]; then
|
||||
if [[ -n ${PUBLISH:-} ]]; then
|
||||
if [[ "${BUILDTYPE}" == "RelWithDebInfo" ]]; then
|
||||
./node_modules/.bin/node-pre-gyp package publish info
|
||||
else
|
||||
elif [[ "${BUILDTYPE}" == "Debug" ]]; then
|
||||
./node_modules/.bin/node-pre-gyp package publish info --debug
|
||||
else
|
||||
echo "error: must provide either Debug or RelWithDebInfo for BUILDTYPE"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user