diff options
author | Jason Wray <jason@mapbox.com> | 2019-01-28 15:55:15 -0800 |
---|---|---|
committer | Jason Wray <jason@mapbox.com> | 2019-01-29 10:04:21 -0800 |
commit | 2d5ae838821f351b654b23a5773da858dcb64e2f (patch) | |
tree | 4112b9f65fd78fd15a72f6199c03e9767fc9cc78 | |
parent | a9a8cd5c810dc8c8cc99db3df9225e8c2c533ef4 (diff) | |
download | qtlocation-mapboxgl-2d5ae838821f351b654b23a5773da858dcb64e2f.tar.gz |
[build, ios] Update jazzy to 0.9.5
-rw-r--r-- | circle.yml | 9 | ||||
-rwxr-xr-x | platform/ios/scripts/document.sh | 18 | ||||
-rwxr-xr-x | platform/ios/scripts/install-packaging-dependencies.sh | 29 |
3 files changed, 35 insertions, 21 deletions
diff --git a/circle.yml b/circle.yml index 966945094f..7c352c8b1f 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: @@ -945,8 +944,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 @@ -981,8 +980,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 |