diff options
author | Jason Wray <jason@mapbox.com> | 2018-09-18 16:27:29 -0700 |
---|---|---|
committer | Jason Wray <friedbunny@users.noreply.github.com> | 2018-09-25 10:30:17 -0700 |
commit | 125c628981bcc38a87498bf5f6c72e2c506dd99f (patch) | |
tree | ceae50a088f3a951b474037f182125543f93833d /circle.yml | |
parent | 0f18c0ce790a8d252f737385cd3599e6ac0e1ecd (diff) | |
download | qtlocation-mapboxgl-125c628981bcc38a87498bf5f6c72e2c506dd99f.tar.gz |
[android, build] Add firebase skipping to android-gnustl-arm-v7
Diffstat (limited to 'circle.yml')
-rw-r--r-- | circle.yml | 83 |
1 files changed, 39 insertions, 44 deletions
diff --git a/circle.yml b/circle.yml index 145368d305..27568b9de4 100644 --- a/circle.yml +++ b/circle.yml @@ -204,6 +204,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 @@ -423,33 +456,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: | @@ -519,23 +528,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: . |