summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2017-11-23 12:19:55 +0200
committerJason Wray <jason@mapbox.com>2017-11-28 12:16:05 -0500
commit3f962574ed855c0edc92c88a24cca47dd6943bc4 (patch)
tree24c126f393846dc9e7fcaaf01933a7858476f300 /platform
parent85bc035be333b166ace6c3029dcbf89bb1e831e9 (diff)
downloadqtlocation-mapboxgl-3f962574ed855c0edc92c88a24cca47dd6943bc4.tar.gz
[build] Added CircleCI macos-release-node{4,6} jobs
Diffstat (limited to 'platform')
-rw-r--r--platform/node/bitrise.yml71
-rwxr-xr-xplatform/node/scripts/after_script.sh14
2 files changed, 5 insertions, 80 deletions
diff --git a/platform/node/bitrise.yml b/platform/node/bitrise.yml
index 3cc27008e4..4a013ea8b0 100644
--- a/platform/node/bitrise.yml
+++ b/platform/node/bitrise.yml
@@ -1,76 +1,15 @@
-format_version: 1.3.0
+format_version: 1.1.0
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
trigger_map:
-- tag: "node-v*"
- workflow: publish
-- tag: "*"
- workflow: primary
-- push_branch: "*"
- workflow: primary
-- pull_request_target_branch: "*"
+- pattern: "*"
+ is_pull_request_allowed: true
workflow: primary
-shortcuts:
- slack: &slack
- title: Post to Slack
- inputs:
- - webhook_url: "$SLACK_HOOK_URL"
- - channel: "#gl-bots"
- - from_username: 'Bitrise Node macOS'
- - from_username_on_error: 'Bitrise Node macOS'
- - message: '<${BITRISE_BUILD_URL}|Build #${BITRISE_BUILD_NUMBER}>
- for <https://github.com/mapbox/mapbox-gl-native/compare/${BITRISE_GIT_BRANCH}|mapbox/mapbox-gl-native@${BITRISE_GIT_BRANCH}>
- by ${GIT_CLONE_COMMIT_COMMITER_NAME}
- passed'
- - message_on_error: '<${BITRISE_BUILD_URL}|Build #${BITRISE_BUILD_NUMBER}>
- for <https://github.com/mapbox/mapbox-gl-native/compare/${BITRISE_GIT_BRANCH}|mapbox/mapbox-gl-native@${BITRISE_GIT_BRANCH}>
- by ${GIT_CLONE_COMMIT_COMMITER_NAME}
- failed'
- - icon_url: https://bitrise-public-content-production.s3.amazonaws.com/slack/bitrise-slack-icon-128.png
- - icon_url_on_error: https://bitrise-public-content-production.s3.amazonaws.com/slack/bitrise-slack-error-icon-128.png
-
workflows:
primary:
steps:
- script:
- title: Test
- inputs:
- - content: |-
- #!/bin/bash
- set -eu -o pipefail
- brew update
- brew unlink node
- brew install cmake awscli node@4 node@6
- brew link node@4 --force
- gem install xcpretty --no-rdoc --no-ri
- make test-node || RESULT=$?
- brew unlink node@4
- brew link --overwrite node@6 --force
- make clean
- make test-node || RESULT=$?
- ./platform/node/scripts/after_script.sh ${BITRISE_BUILD_NUMBER}
- exit ${RESULT:-0}
- - slack: *slack
-
- publish:
- steps:
- - script:
- title: Publish
+ title: Skip Workflow
inputs:
- - content: |-
- #!/bin/bash
- set -eu -o pipefail
- brew update
- brew unlink node
- brew install cmake awscli node@4 node@6
- brew link node@4 --force
- gem install xcpretty --no-rdoc --no-ri
- export BUILDTYPE=RelWithDebInfo
- export PUBLISH=true
- make test-node && ./platform/node/scripts/after_success.sh
- brew unlink node@4
- brew link --overwrite node@6 --force
- make clean
- make test-node && ./platform/node/scripts/after_success.sh
- - slack: *slack
+ - content: echo "This workflow is obsolete — see CircleCi."
diff --git a/platform/node/scripts/after_script.sh b/platform/node/scripts/after_script.sh
deleted file mode 100755
index beb8d6966f..0000000000
--- a/platform/node/scripts/after_script.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/bash
-
-set -e
-set -o pipefail
-
-JOB=$1
-
-if [ ! -z "${AWS_ACCESS_KEY_ID}" ] && [ ! -z "${AWS_SECRET_ACCESS_KEY}" ] ; then
- gzip --stdout mapbox-gl-js/test/integration/render-tests/index.html | \
- aws s3 cp --acl public-read --content-encoding gzip --content-type text/html \
- - s3://mapbox/mapbox-gl-native/render-tests/$JOB/index.html
-
- echo http://mapbox.s3.amazonaws.com/mapbox-gl-native/render-tests/$JOB/index.html
-fi