From 6fc0eb908bb2de2c0da9725470b46bd05c13fed6 Mon Sep 17 00:00:00 2001 From: Jason Wray Date: Tue, 3 Jul 2018 15:16:04 -0400 Subject: [ios, build] Postpone jazzy install for ios-release build --- circle.yml | 4 ---- platform/ios/scripts/document.sh | 9 ++++++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/circle.yml b/circle.yml index 970e91f6b0..0e0e463be5 100644 --- a/circle.yml +++ b/circle.yml @@ -892,10 +892,6 @@ jobs: steps: - checkout - *install-macos-dependencies - - run: - name: Install jazzy - command: sudo gem install jazzy --no-document - background: true - *generate-cache-key - *restore-cache - *reset-ccache-stats 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 -- cgit v1.2.1