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