summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wray <friedbunny@users.noreply.github.com>2018-09-04 11:41:33 -0400
committerGitHub <noreply@github.com>2018-09-04 11:41:33 -0400
commit3f021970ea31a5dadeafd197c1b62f22591aae3d (patch)
tree537c5e6653246178b2020bf5729a48df79ef18a7
parent42aaf3e346c583cbfd68e0f379a705a41af5238f (diff)
downloadqtlocation-mapboxgl-3f021970ea31a5dadeafd197c1b62f22591aae3d.tar.gz
[build] Skip Android device tests via commit message
- Add `[skip firebase]` anywhere in your commit message to avoid running Firebase tests for that commit. - Also skips if the latest commit message only includes `[ios]`, `[macos]`, `[ios, macos]`, or `[darwin]`. - Only skips if included in the most recent commit message.
-rw-r--r--circle.yml12
1 files changed, 10 insertions, 2 deletions
diff --git a/circle.yml b/circle.yml
index c66c45160e..a86bd24101 100644
--- a/circle.yml
+++ b/circle.yml
@@ -420,9 +420,17 @@ jobs:
- *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}" ]; then
+ 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
@@ -431,7 +439,7 @@ jobs:
name: Run instrumentation tests on Firebase
no_output_timeout: 1200
command: |
- if [ -n "${GCLOUD_SERVICE_ACCOUNT_JSON}" ]; then
+ 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 \