From eea8ccd7cb7674349b9d7afcccf895db7490ba14 Mon Sep 17 00:00:00 2001 From: Sarah Lensing Date: Wed, 15 Nov 2017 15:02:04 -0700 Subject: [PATCH] update apk path and add snapshot deployment script for master builds --- circle.yml | 2 +- scripts/deploy-mapzen-sample-app-snapshot.sh | 7 +++++++ scripts/deploy-mapzen-sample-app.sh | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100755 scripts/deploy-mapzen-sample-app-snapshot.sh diff --git a/circle.yml b/circle.yml index e9af1f03..b4e87e43 100644 --- a/circle.yml +++ b/circle.yml @@ -42,7 +42,7 @@ deployment: commands: - scripts/build-samples.sh - scripts/install-s3.sh - - scripts/deploy-mapzen-sample-app.sh + - scripts/deploy-mapzen-sample-app-snapshot.sh - scripts/deploy-snapshot.sh - ./gradlew aarSize countReleaseDexMethods permissions mapzen-android-sdk:dependencies --configuration compile - scripts/release.sh diff --git a/scripts/deploy-mapzen-sample-app-snapshot.sh b/scripts/deploy-mapzen-sample-app-snapshot.sh new file mode 100755 index 00000000..1ede33d9 --- /dev/null +++ b/scripts/deploy-mapzen-sample-app-snapshot.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# +# Builds mapzen sdk sample app and uploads APK to s3://android.mapzen.com/mapzen-sdk-sample-snapshots/. + +./gradlew :samples_mapzen-sample:assembleDebug -PmapzenApiKey=$MAPZEN_API_KEY +s3cmd put samples/mapzen-sample/build/outputs/apk/debug/samples_mapzen-sample-debug.apk s3://android.mapzen.com/mapzen-sdk-sample-latest.apk +s3cmd put samples/mapzen-sample/build/outputs/apk/debug/samples_mapzen-sample-debug.apk s3://android.mapzen.com/mapzen-sdk-sample-snapshots/mapzen-sdk-sample-$CIRCLE_BUILD_NUM.apk diff --git a/scripts/deploy-mapzen-sample-app.sh b/scripts/deploy-mapzen-sample-app.sh index 39285be0..400a1278 100755 --- a/scripts/deploy-mapzen-sample-app.sh +++ b/scripts/deploy-mapzen-sample-app.sh @@ -3,5 +3,5 @@ # Builds mapzen sdk sample app and uploads APK to s3://android.mapzen.com/mapzen-sdk-sample-snapshots/. ./gradlew :samples_mapzen-sample:assembleDebug -PmapzenApiKey=$MAPZEN_API_KEY -s3cmd put samples/mapzen-sample/build/outputs/apk/samples_mapzen-sample-debug.apk s3://android.mapzen.com/mapzen-sdk-sample-latest.apk -s3cmd put samples/mapzen-sample/build/outputs/apk/samples_mapzen-sample-debug.apk s3://android.mapzen.com/mapzen-sdk-sample-releases/mapzen-sdk-sample-$CIRCLE_TAG.apk +s3cmd put samples/mapzen-sample/build/outputs/apk/debug/samples_mapzen-sample-debug.apk s3://android.mapzen.com/mapzen-sdk-sample-latest.apk +s3cmd put samples/mapzen-sample/build/outputs/apk/debug/samples_mapzen-sample-debug.apk s3://android.mapzen.com/mapzen-sdk-sample-releases/mapzen-sdk-sample-$CIRCLE_TAG.apk