summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2018-07-03 15:16:04 -0400
committerJason Wray <jason@mapbox.com>2018-07-03 15:47:49 -0400
commit6fc0eb908bb2de2c0da9725470b46bd05c13fed6 (patch)
treee26708694ddc64386454bc8210d541c112edbe06 /platform
parentb0beb8bfcb39663b04fd11f5f4389fcc7d975ecf (diff)
downloadqtlocation-mapboxgl-6fc0eb908bb2de2c0da9725470b46bd05c13fed6.tar.gz
[ios, build] Postpone jazzy install for ios-release build
Diffstat (limited to 'platform')
-rwxr-xr-xplatform/ios/scripts/document.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/platform/ios/scripts/document.sh b/platform/ios/scripts/document.sh
index 43cbe3067a..407d5f9adf 100755
--- a/platform/ios/scripts/document.sh
+++ b/platform/ios/scripts/document.sh
@@ -6,7 +6,14 @@ set -u
if [ -z `which jazzy` ]; then
echo "Installing jazzy…"
- gem install jazzy --no-document
+
+ CIRCLECI=${CIRCLECI:-false}
+ if [[ "${CIRCLECI}" == true ]]; then
+ sudo gem install jazzy --no-document
+ else
+ gem install jazzy --no-document
+ fi
+
if [ -z `which jazzy` ]; then
echo "Unable to install jazzy. See https://github.com/mapbox/mapbox-gl-native/blob/master/platform/ios/INSTALL.md"
exit 1