Skip to content

Commit 262ff67

Browse files
committed
🚩 Skip build and Fake FTL step by using bucket from last run
After fixing the strange failure on Pixel2-28-in for image wordpress-mobile#3
1 parent 2693bbe commit 262ff67

File tree

1 file changed

+30
-22
lines changed

1 file changed

+30
-22
lines changed

.circleci/config.yml

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -291,31 +291,39 @@ jobs:
291291
command: mkdir -p libs/gutenberg-mobile/gutenberg/packages/react-native-bridge/android/src/main/assets
292292
- attach_workspace:
293293
at: libs/gutenberg-mobile/gutenberg/packages/react-native-bridge/android/src/main/assets
294-
- run:
295-
name: Build
296-
environment:
297-
SUPPRESS_GUTENBERG_MOBILE_JS_BUNDLE_BUILD: 1
298-
command: ./gradlew WordPress:assembleVanillaDebug WordPress:assembleVanillaDebugAndroidTest --stacktrace
294+
# - run:
295+
# name: Build
296+
# environment:
297+
# SUPPRESS_GUTENBERG_MOBILE_JS_BUNDLE_BUILD: 1
298+
# command: ./gradlew WordPress:assembleVanillaDebug WordPress:assembleVanillaDebugAndroidTest --stacktrace
299299
- run:
300300
name: Decrypt credentials
301301
command: openssl aes-256-cbc -md sha256 -d -in .circleci/.firebase.secrets.json.enc -out .circleci/.firebase.secrets.json -k "${FIREBASE_SECRETS_ENCRYPTION_KEY}"
302-
- android/firebase-test:
303-
key-file: .circleci/.firebase.secrets.json
304-
type: instrumentation
305-
apk-path: WordPress/build/outputs/apk/vanilla/debug/org.wordpress.android-vanilla-debug.apk
306-
test-apk-path: WordPress/build/outputs/apk/androidTest/vanilla/debug/org.wordpress.android-vanilla-debug-androidTest.apk
307-
test-targets: package org.wordpress.android.ui.screenshots
308-
# devices: |
309-
# model=blueline,version=28,orientation=portrait
310-
# model=gts3lltevzw,version=28,orientation=default
311-
# [Trial Limitation] Free plan I use to experiment with Firebase Test Lab has a quota of 10 tests/day
312-
# locales: ar de_DE en_US es_ES fr_FR iw_IL in it_IT ja_JP ko_KR nl_NL pl_PL pt_BR ru_RU sr sv_SE th tr_TR vi zh_CN zh_TW
313-
devices: model=Pixel2,version=28,orientation=portrait model=Nexus9,version=25,orientation=portrait
314-
locales: en_US in
315-
project: wpandroid-74b6c
316-
timeout: 30m
317-
num-flaky-test-attempts: 2
318-
results-history-name: CircleCI WordPress Screenshots
302+
# - android/firebase-test:
303+
# key-file: .circleci/.firebase.secrets.json
304+
# type: instrumentation
305+
# apk-path: WordPress/build/outputs/apk/vanilla/debug/org.wordpress.android-vanilla-debug.apk
306+
# test-apk-path: WordPress/build/outputs/apk/androidTest/vanilla/debug/org.wordpress.android-vanilla-debug-androidTest.apk
307+
# test-targets: package org.wordpress.android.ui.screenshots
308+
# # devices: |
309+
# # model=blueline,version=28,orientation=portrait
310+
# # model=gts3lltevzw,version=28,orientation=default
311+
# # [Trial Limitation] Free plan I use to experiment with Firebase Test Lab has a quota of 10 tests/day
312+
# # locales: ar de_DE en_US es_ES fr_FR iw_IL in it_IT ja_JP ko_KR nl_NL pl_PL pt_BR ru_RU sr sv_SE th tr_TR vi zh_CN zh_TW
313+
# devices: model=Pixel2,version=28,orientation=portrait model=Nexus9,version=25,orientation=portrait
314+
# locales: en_US in
315+
# project: wpandroid-74b6c
316+
# timeout: 30m
317+
# num-flaky-test-attempts: 2
318+
# results-history-name: CircleCI WordPress Screenshots
319+
# BEGIN DEBUG STEP (While firebase-test is commented out)
320+
- run:
321+
name: Fake FTL Run
322+
command: |
323+
gcloud auth activate-service-account --key-file ".circleci/.firebase.secrets.json"
324+
echo "INFO: Raw results root path is: [gs://test-lab-d1urt75q3y6wu-ha5s1mih364hi/2020-08-27_20:23:16.534753_OMck/]" >log.txt
325+
# END DEBUG STEP
326+
319327
- android/save-gradle-cache
320328
- run:
321329
name: Download Raw Screenshots from Google Storage

0 commit comments

Comments
 (0)