summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Swick <dan.swick@gmail.com>2019-09-18 12:44:18 -0700
committerGitHub <noreply@github.com>2019-09-18 12:44:18 -0700
commit8bbc4a217831be34ffa72993956fd5b46efd0a75 (patch)
tree697cf276a43ae4c18c0ad7029c00e7d771448822
parent8805defe57aa0d8886c7828d39b1b9b1f17f21b8 (diff)
downloadqtlocation-mapboxgl-8bbc4a217831be34ffa72993956fd5b46efd0a75.tar.gz
[android, build] Generalize docs deployment script and add Android docs deployment to circle config (#15299)
-rw-r--r--circle.yml11
-rwxr-xr-xscripts/trigger-maps-documentation-deploy-steps.sh (renamed from platform/ios/scripts/trigger-external-deploy-steps.sh)4
2 files changed, 13 insertions, 2 deletions
diff --git a/circle.yml b/circle.yml
index fb3956f256..2d1e7e3f73 100644
--- a/circle.yml
+++ b/circle.yml
@@ -1009,6 +1009,14 @@ jobs:
fi
fi
- run:
+ name: Trigger external deploy steps
+ command: |
+ export VERSION_TAG=${CIRCLE_TAG}
+ export GITHUB_TOKEN=${DANGER_GITHUB_API_TOKEN}
+ export DOCS_REPO="android-docs"
+ scripts/trigger-maps-documentation-deploy-steps.sh
+ background: true
+ - run:
name: Record size
command: platform/android/scripts/metrics.sh
# ------------------------------------------------------------------------------
@@ -1447,7 +1455,8 @@ jobs:
command: |
export VERSION_TAG=${CIRCLE_TAG}
export GITHUB_TOKEN=${DANGER_GITHUB_API_TOKEN}
- platform/ios/scripts/trigger-external-deploy-steps.sh
+ export DOCS_REPO="ios-sdk"
+ scripts/trigger-maps-documentation-deploy-steps.sh
- run:
name: Build, package, and upload iOS release
command: |
diff --git a/platform/ios/scripts/trigger-external-deploy-steps.sh b/scripts/trigger-maps-documentation-deploy-steps.sh
index c1ee7c783f..128b7cda8b 100755
--- a/platform/ios/scripts/trigger-external-deploy-steps.sh
+++ b/scripts/trigger-maps-documentation-deploy-steps.sh
@@ -10,6 +10,7 @@ SDK_FLAVOR=${SDK_FLAVOR:-"maps"}
step "Triggering automated site and documentation generation for ${SDK_FLAVOR} SDK ${VERSION_TAG}"
+# No branch specified, so default branch will be used
request_body="{
\"request\": {
\"message\": \"[${SDK_FLAVOR}] ${VERSION_TAG} automated site and documentation generation\",
@@ -25,10 +26,11 @@ request_body="{
step "Making request…"
+# Request URL set to docs-sandbox while testing
curl -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Travis-API-Version: 3" \
-H "Authorization: token ${TRAVISCI_API_TOKEN}" \
-d "${request_body}" \
- https://api.travis-ci.com/repo/mapbox%2Fios-sdk/requests
+ https://api.travis-ci.com/repo/mapbox%2F${DOCS_REPO}/requests