aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Morris <mikemorris@users.noreply.github.com>2016-10-20 16:53:20 -0400
committerMike Morris <mikemorris@users.noreply.github.com>2016-10-21 23:11:48 -0400
commit3aafec5fe64adbed192ee5366b632cfecda69be7 (patch)
tree09c7918ae2666b3d4c4663b2865ff44fc0a0ebf6
parent7bbd49c72c0daa7036a575a49f6cf13bf8a7020e (diff)
[node] publish bitrise tag buildsnode-v3.4.0-pre.17
-rw-r--r--package.json2
-rw-r--r--platform/node/bitrise.yml39
2 files changed, 34 insertions, 7 deletions
diff --git a/package.json b/package.json
index 61936e2fe..ba08f39d2 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "mapbox-gl-native",
- "version": "3.3.3",
+ "version": "3.4.0-pre.17",
"description": "Renders map tiles with Mapbox GL",
"keywords": [
"mapbox",
diff --git a/platform/node/bitrise.yml b/platform/node/bitrise.yml
index b96855478..90127ea3b 100644
--- a/platform/node/bitrise.yml
+++ b/platform/node/bitrise.yml
@@ -1,9 +1,12 @@
-format_version: 1.1.0
+format_version: 1.3.0
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
trigger_map:
-- pattern: "*"
- is_pull_request_allowed: true
+- tag: "node-v*"
+ workflow: primary
+- push_branch: "*"
+ workflow: primary
+- pull_request_target_branch: "*"
workflow: primary
workflows:
@@ -23,6 +26,16 @@ workflows:
envman add --key SKIPCI --value false
fi
- script:
+ title: Check for publishing
+ run_if: '{{enveq "SKIPCI" "false"}}'
+ inputs:
+ - content: |-
+ #!/bin/bash
+ PACKAGE_JSON_VERSION=$(node -e "console.log(require('./package.json').version)")
+ if [[ "${BITRISE_GIT_TAG:-}" == "node-v${PACKAGE_JSON_VERSION}" ]]; then
+ envman add --key PUBLISH --value true
+ fi
+ - script:
title: Run build script
run_if: '{{enveq "SKIPCI" "false"}}'
inputs:
@@ -35,9 +48,23 @@ workflows:
brew link homebrew/versions/node4-lts
gem install xcpretty --no-rdoc --no-ri
make node
- make test-node || result=$?
- ./platform/node/scripts/after_script.sh ${BITRISE_BUILD_NUMBER} ${BITRISE_GIT_TAG:-}
- exit ${result:-0}
+ - script:
+ title: Run test script
+ run_if: '{{enveq "SKIPCI" "false"}} && {{enveq "PUBLISH" ""}}'
+ inputs:
+ - content: |-
+ #!/bin/bash
+ set -eu -o pipefail
+ make test-node || envman add --key RESULT --value $?
+ - script:
+ title: Run publish script
+ run_if: '{{enveq "SKIPCI" "false"}}'
+ inputs:
+ - content: |-
+ #!/bin/bash
+ set -eu -o pipefail
+ ./platform/node/scripts/after_script.sh ${BITRISE_BUILD_NUMBER}
+ exit ${RESULT:-0}
- slack:
title: Post to Slack
run_if: '{{enveq "SKIPCI" "false"}}'