From 37e71666d863c7025b0be8db89b3237f70ee3882 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Fri, 15 Jun 2018 16:18:33 -0700 Subject: [node] Build and publish for node 6.x, 8.x, and 10.x Note that we're still only testing the 6.x ABI (48). --- platform/node/scripts/after_success.sh | 17 ----------------- platform/node/scripts/publish.sh | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 17 deletions(-) delete mode 100755 platform/node/scripts/after_success.sh create mode 100755 platform/node/scripts/publish.sh (limited to 'platform/node') diff --git a/platform/node/scripts/after_success.sh b/platform/node/scripts/after_success.sh deleted file mode 100755 index a5c3c5ec36..0000000000 --- a/platform/node/scripts/after_success.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -set -e -set -o pipefail - -PACKAGE_JSON_VERSION=`node -e "console.log(require('./package.json').version)"` - -if [[ "${CIRCLE_TAG}" == "node-v${PACKAGE_JSON_VERSION}" ]] || [[ "${PUBLISH:-}" == true ]]; then - if [[ "${BUILDTYPE}" == "RelWithDebInfo" ]]; then - ./node_modules/.bin/node-pre-gyp package publish info - 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 diff --git a/platform/node/scripts/publish.sh b/platform/node/scripts/publish.sh new file mode 100755 index 0000000000..20cf5ae627 --- /dev/null +++ b/platform/node/scripts/publish.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +set -e +set -o pipefail + +PACKAGE_JSON_VERSION=`node -e "console.log(require('./package.json').version)"` + +if [[ "${CIRCLE_TAG}" == "node-v${PACKAGE_JSON_VERSION}" ]] || [[ "${PUBLISH:-}" == true ]]; then + # Changes to the version targets here should happen in tandem with updates to the + # EXCLUDE_NODE_ABIS property in cmake/node.cmake and the "node" engines property in + # package.json. + for TARGET in 6.0.0 8.0.0 10.0.0; do + if [[ "${BUILDTYPE}" == "RelWithDebInfo" ]]; then + ./node_modules/.bin/node-pre-gyp package publish info --target="${TARGET}" + elif [[ "${BUILDTYPE}" == "Debug" ]]; then + ./node_modules/.bin/node-pre-gyp package publish info --target="${TARGET}" --debug + else + echo "error: must provide either Debug or RelWithDebInfo for BUILDTYPE" + exit 1 + fi + done +fi -- cgit v1.2.1