Skip to content

Commit

Permalink
update apk path and add snapshot deployment script for master builds
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahsnow1 committed Nov 15, 2017
1 parent dadef39 commit eea8ccd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions scripts/deploy-mapzen-sample-app-snapshot.sh
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions scripts/deploy-mapzen-sample-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit eea8ccd

Please sign in to comment.