summaryrefslogtreecommitdiff
path: root/circle.yml
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2018-07-03 16:45:57 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2018-07-05 08:48:18 -0700
commitd4ca3014eb92ca4d7154e57539100413b32b397f (patch)
tree277af3f3ea32e8285ee198fd293b0607b6e85b21 /circle.yml
parent514485502db8ecacf2b11abad4599d7af09b0cf8 (diff)
downloadqtlocation-mapboxgl-d4ca3014eb92ca4d7154e57539100413b32b397f.tar.gz
[android] Consolidate release builds
Diffstat (limited to 'circle.yml')
-rw-r--r--circle.yml114
1 files changed, 9 insertions, 105 deletions
diff --git a/circle.yml b/circle.yml
index 661a029863..567e4c48a8 100644
--- a/circle.yml
+++ b/circle.yml
@@ -10,20 +10,10 @@ workflows:
branches:
ignore: master
- android-debug-arm-v7
- - 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:
+ - android-release:
filters:
tags:
only: /android-v.*/
- branches:
- ignore: /.*/
- node-clang39-release:
filters:
tags:
@@ -383,7 +373,7 @@ jobs:
path: platform/android/MapboxGLAndroidSDKTestApp/lint-baseline.xml
# ------------------------------------------------------------------------------
- android-build-release:
+ android-release:
docker:
- image: mbgl/feb0443038:android-ndk-r17
resource_class: large
@@ -410,49 +400,11 @@ jobs:
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: .
- - run:
- name: Record size
- command: platform/android/scripts/metrics.sh
-
-
-# ------------------------------------------------------------------------------
- android-release-snapshot:
- 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
+ name: Update version name
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
+ if [[ $CIRCLE_TAG == android-v* ]]; then
+ sed -i -e "s/^VERSION_NAME=.*/VERSION_NAME=${CIRCLE_TAG:9}/" platform/android/MapboxGLAndroidSDK/gradle.properties
+ fi
- run:
name: Build package
command: make apackage
@@ -470,58 +422,10 @@ jobs:
command: 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: |
- 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: .
- - run:
- name: Record size
- command: platform/android/scripts/metrics.sh
- - deploy:
- name: Publish to Maven
- command: make run-android-upload-archives
-
+ if [[ $CIRCLE_BRANCH == master ]] || [[ $CIRCLE_BRANCH == release-* ]] || [[ $CIRCLE_TAG == android-v* ]]; then
+ make run-android-upload-archives
+ fi
# ------------------------------------------------------------------------------
node-clang39-release: