diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2018-06-15 16:18:33 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2018-06-26 17:20:46 -0700 |
commit | 37e71666d863c7025b0be8db89b3237f70ee3882 (patch) | |
tree | 8974e02b36b61d2d2fa4289da2c45d563a55ad40 /platform | |
parent | ec05ee41d10b82751ed2cd6bab7f00a0d6778b9a (diff) | |
download | qtlocation-mapboxgl-37e71666d863c7025b0be8db89b3237f70ee3882.tar.gz |
[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).
Diffstat (limited to 'platform')
-rwxr-xr-x | platform/node/scripts/after_success.sh | 17 | ||||
-rwxr-xr-x | platform/node/scripts/publish.sh | 22 |
2 files changed, 22 insertions, 17 deletions
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 |