summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2018-09-25 17:37:38 -0700
committerJason Wray <jason@mapbox.com>2018-09-25 17:37:38 -0700
commitf87537c3c2ecab646dbd9130f8d0836dbe7e66e8 (patch)
tree1fbb345cc14531cdd4d1853bb3f6eb418c6ca67b
parent526c0db7936abf8c8a110a2169f69512cd50d887 (diff)
downloadqtlocation-mapboxgl-upstream/fb-stop-publishing-static-framework.tar.gz
[ios, build] Print file sizes during deployment; don't print progressupstream/fb-stop-publishing-static-framework
-rwxr-xr-xplatform/ios/scripts/publish.sh19
1 files changed, 16 insertions, 3 deletions
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
@@ -30,20 +30,33 @@ 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