diff options
author | Jason Wray <jason@mapbox.com> | 2018-09-25 17:37:38 -0700 |
---|---|---|
committer | Jason Wray <friedbunny@users.noreply.github.com> | 2018-09-26 07:56:36 -0700 |
commit | bbadc150b76b5939c0082f20a5a86d977c7c5346 (patch) | |
tree | aac8f82ae6c245f728001daca66b5a4a5af00142 /platform/ios | |
parent | a30bcff7257f6f6d2104f8d0e5b32f77266ac879 (diff) | |
download | qtlocation-mapboxgl-bbadc150b76b5939c0082f20a5a86d977c7c5346.tar.gz |
[ios, build] Print file sizes during deployment; don't print progress
Diffstat (limited to 'platform/ios')
-rwxr-xr-x | platform/ios/scripts/publish.sh | 19 |
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 |