summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2018-09-18 16:27:29 -0700
committerJason Wray <jason@mapbox.com>2018-09-18 17:02:03 -0700
commitd2c465a4b45c8a52cc9bd708292837b88db081b8 (patch)
tree49a42050e65363c4023fcd0321ec5896c88a0e6c
parenta938c3ef68af249bb3199bde2818436a0bff0952 (diff)
downloadqtlocation-mapboxgl-upstream/fb-skip-firebase-on-new-android-job.tar.gz
[android, build] Add firebase skipping to android-gnustl-arm-v7upstream/fb-skip-firebase-on-new-android-job
-rw-r--r--circle.yml83
1 files changed, 39 insertions, 44 deletions
diff --git a/circle.yml b/circle.yml
index a7fa95c2a6..b44af9cdbd 100644
--- a/circle.yml
+++ b/circle.yml
@@ -203,6 +203,39 @@ step-library:
command: make check-public-symbols
+ - &conditionally-skip-firebase
+ run:
+ name: Check if Firebase should be skipped
+ command: |
+ SKIPPABLE_TAG=$( git log -1 | grep -ioE -e "\[(skip.firebase|firebase.skip)\]" -e "\[((i|mac)os)+(, (i|mac)os)?\]" -e "\[darwin\]" || true )
+ if [ -n "${SKIPPABLE_TAG}" ]; then
+ echo "Skipping Firebase tests because commit message contained: '${SKIPPABLE_TAG}'"
+ echo 'export SKIP_FIREBASE=1' >> $BASH_ENV
+ fi
+ - &login-google-cloud-platform
+ run:
+ name: Log in to Google Cloud Platform
+ shell: /bin/bash -euo pipefail
+ command: |
+ if [[ -n "${GCLOUD_SERVICE_ACCOUNT_JSON}" && -z "${SKIP_FIREBASE:-}" ]]; then
+ echo "${GCLOUD_SERVICE_ACCOUNT_JSON}" > secret.json
+ gcloud auth activate-service-account --key-file secret.json --project android-gl-native
+ rm secret.json
+ fi
+ - &run-android-instrumentation-tests
+ run:
+ name: Run instrumentation tests on Firebase
+ no_output_timeout: 20m
+ command: |
+ if [[ -n "${GCLOUD_SERVICE_ACCOUNT_JSON}" && -z "${SKIP_FIREBASE:-}" ]]; then
+ gcloud firebase test android models list
+ gcloud firebase test android run --type instrumentation \
+ --app platform/android/MapboxGLAndroidSDKTestApp/build/outputs/apk/debug/MapboxGLAndroidSDKTestApp-debug.apk \
+ --test platform/android/MapboxGLAndroidSDKTestApp/build/outputs/apk/androidTest/debug/MapboxGLAndroidSDKTestApp-debug-androidTest.apk \
+ --device-ids sailfish --os-version-ids 26 --locales en --orientations portrait --timeout 20m
+ fi
+
+
- &install-ios-packaging-dependencies
run:
name: Install iOS packaging dependencies
@@ -422,33 +455,9 @@ jobs:
- *save-mason_packages-cache
- *save-ccache
- *save-gradle-cache
- - run:
- name: Check if Firebase should be skipped
- command: |
- SKIPPABLE_TAG=$( git log -1 | grep -ioE -e "\[(skip.firebase|firebase.skip)\]" -e "\[((i|mac)os)+(, (i|mac)os)?\]" -e "\[darwin\]" || true )
- if [ -n "${SKIPPABLE_TAG}" ]; then
- echo "Skipping Firebase tests because commit message contained: '${SKIPPABLE_TAG}'"
- echo 'export SKIP_FIREBASE=1' >> $BASH_ENV
- fi
- - run:
- name: Log in to Google Cloud Platform
- command: |
- if [[ -n "${GCLOUD_SERVICE_ACCOUNT_JSON}" && -z "${SKIP_FIREBASE}" ]]; then
- echo "${GCLOUD_SERVICE_ACCOUNT_JSON}" > secret.json
- gcloud auth activate-service-account --key-file secret.json --project android-gl-native
- rm secret.json
- fi
- - run:
- name: Run instrumentation tests on Firebase
- no_output_timeout: 1200
- command: |
- if [[ -n "${GCLOUD_SERVICE_ACCOUNT_JSON}" && -z "${SKIP_FIREBASE}" ]]; then
- gcloud firebase test android models list
- gcloud firebase test android run --type instrumentation \
- --app platform/android/MapboxGLAndroidSDKTestApp/build/outputs/apk/debug/MapboxGLAndroidSDKTestApp-debug.apk \
- --test platform/android/MapboxGLAndroidSDKTestApp/build/outputs/apk/androidTest/debug/MapboxGLAndroidSDKTestApp-debug-androidTest.apk \
- --device-ids sailfish --os-version-ids 26 --locales en --orientations portrait --timeout 20m
- fi
+ - *conditionally-skip-firebase
+ - *login-google-cloud-platform
+ - *run-android-instrumentation-tests
- run:
name: gzip debugable .so files
command: |
@@ -518,23 +527,9 @@ jobs:
- *save-mason_packages-cache
- *save-ccache
- *save-gradle-cache
- - run:
- name: Log in to Google Cloud Platform
- shell: /bin/bash -euo pipefail
- command: |
- echo "${GCLOUD_SERVICE_ACCOUNT_JSON}" > secret.json
- gcloud auth activate-service-account --key-file secret.json --project android-gl-native
- rm secret.json
- - run:
- name: Run instrumentation tests on Firebase
- no_output_timeout: 1200
- shell: /bin/bash -euo pipefail
- command: |
- gcloud firebase test android models list
- gcloud firebase test android run --type instrumentation \
- --app platform/android/MapboxGLAndroidSDKTestApp/build/outputs/apk/debug/MapboxGLAndroidSDKTestApp-debug.apk \
- --test platform/android/MapboxGLAndroidSDKTestApp/build/outputs/apk/androidTest/debug/MapboxGLAndroidSDKTestApp-debug-androidTest.apk \
- --device-ids sailfish --os-version-ids 26 --locales en --orientations portrait --timeout 20m
+ - *conditionally-skip-firebase
+ - *login-google-cloud-platform
+ - *run-android-instrumentation-tests
- store_artifacts:
path: platform/android/MapboxGLAndroidSDKTestApp/build/outputs/apk/debug
destination: .