summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuha Alanen <juha.alanen@mapbox.com>2019-12-19 13:55:48 +0200
committerJuha Alanen <juha.alanen@mapbox.com>2020-01-03 11:52:50 +0200
commit8ce3f6a987356713e497004a00242350425f5581 (patch)
tree8e95eaf31a5c3ac6f4e72d82a821b6ba11073bb5
parentee66940409ab5e0b5128fedcd889238f1f76f3c8 (diff)
downloadqtlocation-mapboxgl-8ce3f6a987356713e497004a00242350425f5581.tar.gz
[build] Run Android benchmark on Firebase
-rw-r--r--circle.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/circle.yml b/circle.yml
index 0dcbe34dc1..b0f4879bdb 100644
--- a/circle.yml
+++ b/circle.yml
@@ -5,6 +5,7 @@ workflows:
mbgl-next:
jobs:
- next-sanity-checks
+ - next-android-benchmark-runner
- next-android-render-test-runner
- next-baselines:
requires:
@@ -668,6 +669,40 @@ commands:
fi
jobs:
+ next-android-benchmark-runner:
+ executor: ubuntu-disco
+ steps:
+ - checkout
+ - next-prepare
+ - run:
+ name: Build BenchmarkRunner APK
+ command: |
+ cd benchmark/android
+ ./gradlew --parallel --max-workers=8 -Pmapbox.abis=arm64-v8a app:assembleRelease app:assembleAndroidTest
+ - login-google-cloud-platform
+ - run:
+ name: Run BenchmarkRunner 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 benchmark/android/app/build/outputs/apk/release/app-release.apk \
+ --test benchmark/android/app/build/outputs/apk/androidTest/release/app-release-androidTest.apk \
+ --device-ids flame --os-version-ids 29 --locales en --orientations portrait --timeout 20m \
+ --directories-to-pull /sdcard/benchmark/results --results-dir benchmark-${CIRCLE_BUILD_NUM} \
+ --no-record-video --no-performance-metrics
+ fi
+ - run:
+ name: Retrieve TestResult from gcloud
+ when: always
+ command: |
+ if [[ -n "${GCLOUD_SERVICE_ACCOUNT_JSON}" && -z "${SKIP_FIREBASE:-}" ]]; then
+ testResult=$(gsutil ls gs://test-lab-186672a0qp5bq-ycr70axads3nc/benchmark-${CIRCLE_BUILD_NUM}/**/results/results.json)
+ mkdir -p /tmp/tests/benchmark
+ gsutil cp $testResult /tmp/tests/benchmark
+ fi
+ - next-save
next-android-render-test-runner:
executor: ubuntu-disco
steps: