From c3ca73c756095becff5bd7a9ed2144f378634b7f Mon Sep 17 00:00:00 2001 From: Jason Wray Date: Mon, 28 Jan 2019 15:55:15 -0800 Subject: [build, ios] Update jazzy to 0.9.5 --- circle.yml | 9 +++---- platform/ios/scripts/document.sh | 18 ++------------ .../ios/scripts/install-packaging-dependencies.sh | 29 ++++++++++++++++++++++ 3 files changed, 35 insertions(+), 21 deletions(-) create mode 100755 platform/ios/scripts/install-packaging-dependencies.sh diff --git a/circle.yml b/circle.yml index 473739d58b..583381d32b 100644 --- a/circle.yml +++ b/circle.yml @@ -331,15 +331,14 @@ commands: steps: - run: name: Install iOS packaging dependencies - command: brew install awscli wget + command: ./platform/ios/scripts/install-packaging-dependencies.sh background: true install-macos-dependencies: steps: - run: name: Install macOS dependencies - command: | - brew install cmake ccache + command: brew install cmake ccache install-node-macos-dependencies: steps: @@ -939,8 +938,8 @@ jobs: SLACK_CHANNEL: C0ACM9Q2C steps: - install-macos-dependencies - - install-ios-packaging-dependencies - install-dependencies + - install-ios-packaging-dependencies - run: name: Build dynamic framework for device and simulator command: make iframework @@ -975,8 +974,8 @@ jobs: export SLACK_MESSAGE="<$CIRCLE_BUILD_URL|Release build for \`$CIRCLE_TAG\` started.>" scripts/notify-slack.sh - install-macos-dependencies - - install-ios-packaging-dependencies - install-dependencies + - install-ios-packaging-dependencies - run: name: Build, package, and upload iOS release command: | diff --git a/platform/ios/scripts/document.sh b/platform/ios/scripts/document.sh index 17fa08bdcd..cf6d71a9f0 100755 --- a/platform/ios/scripts/document.sh +++ b/platform/ios/scripts/document.sh @@ -1,27 +1,13 @@ #!/usr/bin/env bash -set -e -set -o pipefail -set -u +set -euo pipefail function step { >&2 echo -e "\033[1m\033[36m* $@\033[0m"; } function finish { >&2 echo -en "\033[0m"; } trap finish EXIT if [ -z `which jazzy` ]; then - step "Installing jazzy…" - - CIRCLECI=${CIRCLECI:-false} - if [[ "${CIRCLECI}" == true ]]; then - sudo gem install jazzy -v 0.9.4 --no-document - else - gem install jazzy -v 0.9.4 --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 - fi + ./platform/ios/scripts/install-packaging-dependencies.sh fi OUTPUT=${OUTPUT:-documentation} diff --git a/platform/ios/scripts/install-packaging-dependencies.sh b/platform/ios/scripts/install-packaging-dependencies.sh new file mode 100755 index 0000000000..32a8ed64d1 --- /dev/null +++ b/platform/ios/scripts/install-packaging-dependencies.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env bash + +set -euo pipefail + +JAZZY_VERSION="0.9.5" + +function step { >&2 echo -e "\033[1m\033[36m* $@\033[0m"; } +function finish { >&2 echo -en "\033[0m"; } +trap finish EXIT + +step "Installing packaging dependencies…" +brew install awscli wget + +if [ -z `which jazzy` ]; then + step "Installing jazzy…" + + CIRCLECI=${CIRCLECI:-false} + if [[ "${CIRCLECI}" == true ]]; then + sudo gem install sqlite3 -- --with-sqlite3-lib=/usr/lib + sudo gem install jazzy -v $JAZZY_VERSION --no-document + else + gem install jazzy -v $JAZZY_VERSION --no-document + fi + + if [ -z `which jazzy` ]; then + echo "Unable to install jazzy ($JAZZY_VERSION). See https://github.com/mapbox/mapbox-gl-native/blob/master/platform/ios/INSTALL.md" + exit 1 + fi +fi -- cgit v1.2.1