diff options
author | Jason Wray <jason@mapbox.com> | 2019-07-25 15:16:58 -0700 |
---|---|---|
committer | Jason Wray <jason@mapbox.com> | 2019-07-30 13:58:30 -0700 |
commit | 061bc59d1feb68132412913bb6412bc65f7c8c6b (patch) | |
tree | 7e6436df9b5fbb11af09771f7d1a0a4a8d8fdb33 | |
parent | f86f0226dd7f87fef97378cff225754ae5d69c90 (diff) | |
download | qtlocation-mapboxgl-061bc59d1feb68132412913bb6412bc65f7c8c6b.tar.gz |
[ios, build] Install cocoapods as a deployment dependency
-rwxr-xr-x | platform/ios/scripts/install-packaging-dependencies.sh | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/platform/ios/scripts/install-packaging-dependencies.sh b/platform/ios/scripts/install-packaging-dependencies.sh index 08b1e4278e..3d87a93f20 100755 --- a/platform/ios/scripts/install-packaging-dependencies.sh +++ b/platform/ios/scripts/install-packaging-dependencies.sh @@ -2,7 +2,9 @@ set -euo pipefail +COCOAPODS_VERSION="1.7.5" JAZZY_VERSION="0.10.0" +CIRCLECI=${CIRCLECI:-false} function step { >&2 echo -e "\033[1m\033[36m* $@\033[0m"; } function finish { >&2 echo -en "\033[0m"; } @@ -10,18 +12,50 @@ trap finish EXIT step "Installing packaging dependencies…" +## +## aws +## if [ -z `which aws` ]; then brew install awscli +else + echo "Found awscli" fi +## +## wget +## if [ -z `which wget` ]; then brew install wget +else + echo "Found brew" fi +## +## cocoapods +## +if [[ -z `which pod` || $(pod --version) != "${COCOAPODS_VERSION}" ]]; then + step "Installing cocoapods…" + + if [[ "${CIRCLECI}" == true ]]; then + sudo gem install cocoapods -v $COCOAPODS_VERSION --no-document + else + gem install cocoapods -v $COCOAPODS_VERSION --no-document + fi + + if [ -z `which pod` ]; then + echo "Unable to install cocoapods ($COCOAPODS_VERSION)." + exit 1 + fi +else + echo "Found cocoapods (${COCOAPODS_VERSION})" +fi + +## +## jazzy +## if [[ -z `which jazzy` || $(jazzy -v) != "jazzy version: ${JAZZY_VERSION}" ]]; then step "Installing jazzy…" - CIRCLECI=${CIRCLECI:-false} if [[ "${CIRCLECI}" == true ]]; then sudo gem install jazzy -v $JAZZY_VERSION --no-document -- --with-sqlite3-lib=/usr/lib else @@ -32,4 +66,8 @@ if [[ -z `which jazzy` || $(jazzy -v) != "jazzy version: ${JAZZY_VERSION}" ]]; t echo "Unable to install jazzy ($JAZZY_VERSION). See https://github.com/mapbox/mapbox-gl-native/blob/master/platform/ios/INSTALL.md" exit 1 fi +else + echo "Found jazzy (${JAZZY_VERSION})" fi + +step "Finished installing packaging dependencies" |