summaryrefslogtreecommitdiff
path: root/circle.yml
diff options
context:
space:
mode:
authorŁukasz Paczos <lukasz.paczos@mapbox.com>2018-06-06 17:18:04 +0200
committerŁukasz Paczos <lukasz.paczos@mapbox.com>2018-06-07 17:21:09 +0200
commit0a15be07aea4a8ba14b0c63a66f5db8066aaacce (patch)
tree56d043bdf22825e50a60ba79b19a61c28cefeb2c /circle.yml
parent2c29d3b714e19aa2b0598d778a4bbd46ff5e90c7 (diff)
downloadqtlocation-mapboxgl-0a15be07aea4a8ba14b0c63a66f5db8066aaacce.tar.gz
[android] - automate tag release
Diffstat (limited to 'circle.yml')
-rw-r--r--circle.yml113
1 files changed, 109 insertions, 4 deletions
diff --git a/circle.yml b/circle.yml
index 53cc6e9c7b..5f20955d93 100644
--- a/circle.yml
+++ b/circle.yml
@@ -10,7 +10,20 @@ workflows:
branches:
ignore: master
- android-debug-arm-v7
- - android-release-all
+ - android-build-release:
+ filters:
+ branches:
+ ignore: /(master|release-boba|release-chai)/
+ - android-release-snapshot:
+ filters:
+ branches:
+ only: /(master|release-boba|release-chai)/
+ - android-release-tag:
+ filters:
+ tags:
+ only: /android-v.*/
+ branches:
+ ignore: /.*/
- node4-clang39-release:
filters:
tags:
@@ -376,7 +389,48 @@ jobs:
path: platform/android/MapboxGLAndroidSDKTestApp/lint-baseline.xml
# ------------------------------------------------------------------------------
- android-release-all:
+ android-build-release:
+ docker:
+ - image: mbgl/feb0443038:android-ndk-r17
+ resource_class: large
+ working_directory: /src
+ environment:
+ LIBSYSCONFCPUS: 4
+ JOBS: 4
+ BUILDTYPE: Release
+ IS_LOCAL_DEVELOPMENT: false
+ steps:
+ - checkout
+ - *generate-cache-key
+ - *restore-cache
+ - *restore-gradle-cache
+ - *reset-ccache-stats
+ - run:
+ name: Generate Maven credentials
+ shell: /bin/bash -euo pipefail
+ command: |
+ aws s3 cp s3://mapbox/android/signing-credentials/secring.gpg platform/android/MapboxGLAndroidSDK/secring.gpg
+ echo "NEXUS_USERNAME=$PUBLISH_NEXUS_USERNAME
+ NEXUS_PASSWORD=$PUBLISH_NEXUS_PASSWORD
+ signing.keyId=$SIGNING_KEYID
+ signing.password=$SIGNING_PASSWORD
+ signing.secretKeyRingFile=secring.gpg" >> platform/android/MapboxGLAndroidSDK/gradle.properties
+ - run:
+ name: Build package
+ command: make apackage
+ - run:
+ name: Build release Test App
+ command: make android
+ - *show-ccache-stats
+ - *save-cache
+ - *save-gradle-cache
+ - store_artifacts:
+ path: platform/android/MapboxGLAndroidSDKTestApp/build/outputs/apk/release
+ destination: .
+
+
+# ------------------------------------------------------------------------------
+ android-release-snapshot:
docker:
- image: mbgl/feb0443038:android-ndk-r17
resource_class: large
@@ -417,12 +471,63 @@ jobs:
- deploy:
name: Show statistics
command: |
- [ "${CIRCLE_BRANCH}" == "master" ] && export CLOUDWATCH=true
+ export CLOUDWATCH=true
platform/android/scripts/metrics.sh
- deploy:
name: Publish to Maven
+ command: make run-android-upload-archives
+
+
+# ------------------------------------------------------------------------------
+ android-release-tag:
+ docker:
+ - image: mbgl/feb0443038:android-ndk-r17
+ resource_class: large
+ working_directory: /src
+ environment:
+ LIBSYSCONFCPUS: 4
+ JOBS: 4
+ BUILDTYPE: Release
+ IS_LOCAL_DEVELOPMENT: false
+ steps:
+ - checkout
+ - *generate-cache-key
+ - *restore-cache
+ - *restore-gradle-cache
+ - *reset-ccache-stats
+ - run:
+ name: Generate Maven credentials
+ shell: /bin/bash -euo pipefail
command: |
- if [ "${CIRCLE_BRANCH}" == "master" ]; then make run-android-upload-archives ; fi
+ aws s3 cp s3://mapbox/android/signing-credentials/secring.gpg platform/android/MapboxGLAndroidSDK/secring.gpg
+ echo "NEXUS_USERNAME=$PUBLISH_NEXUS_USERNAME
+ NEXUS_PASSWORD=$PUBLISH_NEXUS_PASSWORD
+ signing.keyId=$SIGNING_KEYID
+ signing.password=$SIGNING_PASSWORD
+ signing.secretKeyRingFile=secring.gpg" >> platform/android/MapboxGLAndroidSDK/gradle.properties
+ - run:
+ name: Update version name
+ command: sed -i -e "s/^VERSION_NAME=.*/VERSION_NAME=${CIRCLE_TAG:9}/" platform/android/MapboxGLAndroidSDK/gradle.properties
+ - run:
+ name: Build package
+ command: make apackage
+ - run:
+ name: Build release Test App
+ command: make android
+ - *show-ccache-stats
+ - *save-cache
+ - *save-gradle-cache
+ - store_artifacts:
+ path: platform/android/MapboxGLAndroidSDKTestApp/build/outputs/apk/release
+ destination: .
+ - deploy:
+ name: Show statistics
+ command: |
+ export CLOUDWATCH=true
+ platform/android/scripts/metrics.sh
+ - deploy:
+ name: Publish to Maven
+ command: make run-android-upload-archives
# ------------------------------------------------------------------------------