From de5003813e4bf9d88d6d9eb0980c2ec60f0006bb Mon Sep 17 00:00:00 2001 From: Peng Liu Date: Mon, 25 May 2020 15:06:07 +0300 Subject: [PATCH] [test] Test release build of the test app with robo on firebase. --- .circleci/config.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6397d4003..3edabd60e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -320,11 +320,27 @@ jobs: command: make apackage - run: name: Build release Test App - command: make android + command: | + if [ -n "${MAPBOX_DEVELOPER_CONFIG_XML}" ]; then + echo "${MAPBOX_DEVELOPER_CONFIG_XML}" > MapboxGLAndroidSDKTestApp/src/main/res/values/developer-config.xml + make android + fi - run: name: Generate javadoc command: make android-javadoc - save-dependencies: { gradle: true } + - login-google-cloud-platform + - run: + name: Run robotest of release Test App on Firebase + no_output_timeout: 10m + command: | + if [[ -n "${GLCLOUD_SERVICE_JSON}" ]]; then + if [[ $CIRCLE_BRANCH != master && $CIRCLE_TAG != android-v* ]]; then + gcloud firebase test android run --type robo \ + --app MapboxGLAndroidSDKTestApp/build/outputs/apk/release/MapboxGLAndroidSDKTestApp-release.apk \ + --device-ids sailfish --os-version-ids "26" --locales en --orientations portrait --timeout 90s + fi + fi - run: name: archive debugable objects command: |