[build] Publish node packages with RelWithDebInfo

This commit is contained in:
Bruno de Oliveira Abinader
2017-07-13 14:54:09 +03:00
parent 48ddfef89f
commit 460643b213
6 changed files with 14 additions and 9 deletions

View File

@@ -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