[ios, build] Postpone jazzy install for ios-release build

This commit is contained in:
Jason Wray
2018-07-03 15:16:04 -04:00
parent b0beb8bfcb
commit 6fc0eb908b
2 changed files with 8 additions and 5 deletions

View File

@@ -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