From bbadc150b76b5939c0082f20a5a86d977c7c5346 Mon Sep 17 00:00:00 2001 From: Jason Wray Date: Tue, 25 Sep 2018 17:37:38 -0700 Subject: [ios, build] Print file sizes during deployment; don't print progress --- platform/ios/scripts/publish.sh | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'platform/ios') diff --git a/platform/ios/scripts/publish.sh b/platform/ios/scripts/publish.sh index 80ae1ff4e0..3212449aa5 100755 --- a/platform/ios/scripts/publish.sh +++ b/platform/ios/scripts/publish.sh @@ -29,21 +29,34 @@ step "Compressing ${ZIP}…" rm -f ../${ZIP} zip -yr ../${ZIP} * +# +# report file sizes +# +step "Echoing file sizes…" +du -sh ../${ZIP} +du -sch * +du -sch dynamic/* + # # upload # +PROGRESS= +if [ -n "${CI:-}" ]; then + PROGRESS="--no-progress" +fi + step "Uploading ${ZIP} to s3…" REPO_NAME=$(basename $TRAVIS_REPO_SLUG) -aws s3 cp ../${ZIP} s3://mapbox/$REPO_NAME/ios/builds/ --acl public-read +aws s3 cp ../${ZIP} s3://mapbox/$REPO_NAME/ios/builds/ --acl public-read ${PROGRESS} echo "URL: https://mapbox.s3.amazonaws.com/$REPO_NAME/ios/builds/${ZIP}" # -# update nightly +# upload & update nightly # if [[ ${PUBLISH_VERSION} =~ "nightly" ]]; then step "Updating ${PUBLISH_VERSION} to ${PUBLISH_STYLE}…" GENERIC_NIGHTLY_FILENAME="mapbox-ios-sdk-${PUBLISH_VERSION}.zip" aws s3 cp \ s3://mapbox/$REPO_NAME/ios/builds/${ZIP} \ - s3://mapbox/$REPO_NAME/ios/builds/${GENERIC_NIGHTLY_FILENAME} --acl public-read + s3://mapbox/$REPO_NAME/ios/builds/${GENERIC_NIGHTLY_FILENAME} --acl public-read ${PROGRESS} fi -- cgit v1.2.1