From 061bc59d1feb68132412913bb6412bc65f7c8c6b Mon Sep 17 00:00:00 2001 From: Jason Wray Date: Thu, 25 Jul 2019 15:16:58 -0700 Subject: [ios, build] Install cocoapods as a deployment dependency --- .../ios/scripts/install-packaging-dependencies.sh | 40 +++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) 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" -- cgit v1.2.1