Skip to content

Commit

Permalink
🚩 Skip build and Fake FTL step by using bucket from last run
Browse files Browse the repository at this point in the history
After fixing the strange failure on Pixel2-28-in for image wordpress-mobile#3
  • Loading branch information
AliSoftware committed Aug 27, 2020
1 parent 2693bbe commit 262ff67
Showing 1 changed file with 30 additions and 22 deletions.
52 changes: 30 additions & 22 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -291,31 +291,39 @@ jobs:
command: mkdir -p libs/gutenberg-mobile/gutenberg/packages/react-native-bridge/android/src/main/assets
- attach_workspace:
at: libs/gutenberg-mobile/gutenberg/packages/react-native-bridge/android/src/main/assets
- run:
name: Build
environment:
SUPPRESS_GUTENBERG_MOBILE_JS_BUNDLE_BUILD: 1
command: ./gradlew WordPress:assembleVanillaDebug WordPress:assembleVanillaDebugAndroidTest --stacktrace
# - run:
# name: Build
# environment:
# SUPPRESS_GUTENBERG_MOBILE_JS_BUNDLE_BUILD: 1
# command: ./gradlew WordPress:assembleVanillaDebug WordPress:assembleVanillaDebugAndroidTest --stacktrace
- run:
name: Decrypt credentials
command: openssl aes-256-cbc -md sha256 -d -in .circleci/.firebase.secrets.json.enc -out .circleci/.firebase.secrets.json -k "${FIREBASE_SECRETS_ENCRYPTION_KEY}"
- android/firebase-test:
key-file: .circleci/.firebase.secrets.json
type: instrumentation
apk-path: WordPress/build/outputs/apk/vanilla/debug/org.wordpress.android-vanilla-debug.apk
test-apk-path: WordPress/build/outputs/apk/androidTest/vanilla/debug/org.wordpress.android-vanilla-debug-androidTest.apk
test-targets: package org.wordpress.android.ui.screenshots
# devices: |
# model=blueline,version=28,orientation=portrait
# model=gts3lltevzw,version=28,orientation=default
# [Trial Limitation] Free plan I use to experiment with Firebase Test Lab has a quota of 10 tests/day
# 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
devices: model=Pixel2,version=28,orientation=portrait model=Nexus9,version=25,orientation=portrait
locales: en_US in
project: wpandroid-74b6c
timeout: 30m
num-flaky-test-attempts: 2
results-history-name: CircleCI WordPress Screenshots
# - android/firebase-test:
# key-file: .circleci/.firebase.secrets.json
# type: instrumentation
# apk-path: WordPress/build/outputs/apk/vanilla/debug/org.wordpress.android-vanilla-debug.apk
# test-apk-path: WordPress/build/outputs/apk/androidTest/vanilla/debug/org.wordpress.android-vanilla-debug-androidTest.apk
# test-targets: package org.wordpress.android.ui.screenshots
# # devices: |
# # model=blueline,version=28,orientation=portrait
# # model=gts3lltevzw,version=28,orientation=default
# # [Trial Limitation] Free plan I use to experiment with Firebase Test Lab has a quota of 10 tests/day
# # 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
# devices: model=Pixel2,version=28,orientation=portrait model=Nexus9,version=25,orientation=portrait
# locales: en_US in
# project: wpandroid-74b6c
# timeout: 30m
# num-flaky-test-attempts: 2
# results-history-name: CircleCI WordPress Screenshots
# BEGIN DEBUG STEP (While firebase-test is commented out)
- run:
name: Fake FTL Run
command: |
gcloud auth activate-service-account --key-file ".circleci/.firebase.secrets.json"
echo "INFO: Raw results root path is: [gs://test-lab-d1urt75q3y6wu-ha5s1mih364hi/2020-08-27_20:23:16.534753_OMck/]" >log.txt
# END DEBUG STEP

- android/save-gradle-cache
- run:
name: Download Raw Screenshots from Google Storage
Expand Down

0 comments on commit 262ff67

Please sign in to comment.