diff options
author | Jason Wray <jason@mapbox.com> | 2018-07-03 15:16:04 -0400 |
---|---|---|
committer | Jason Wray <jason@mapbox.com> | 2018-07-03 15:47:49 -0400 |
commit | 6fc0eb908bb2de2c0da9725470b46bd05c13fed6 (patch) | |
tree | e26708694ddc64386454bc8210d541c112edbe06 | |
parent | b0beb8bfcb39663b04fd11f5f4389fcc7d975ecf (diff) | |
download | qtlocation-mapboxgl-6fc0eb908bb2de2c0da9725470b46bd05c13fed6.tar.gz |
[ios, build] Postpone jazzy install for ios-release build
-rw-r--r-- | circle.yml | 4 | ||||
-rwxr-xr-x | 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 |