Skip to content

Commit 415ae8a

Browse files
authored
Merge pull request #789 from wordpress-mobile/circleci-orb
CircleCI: Use Orb for running Firebase tests
2 parents 2d5e0e5 + 26c0c16 commit 415ae8a

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

.circleci/config.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2.1
22

33
orbs:
4-
android: wordpress-mobile/[email protected].20
4+
android: wordpress-mobile/[email protected].21
55

66
jobs:
77
Lint:
@@ -51,20 +51,14 @@ jobs:
5151
- run:
5252
name: Decrypt credentials
5353
command: openssl aes-256-cbc -md sha256 -d -in .firebase.secrets.json.enc -out .firebase.secrets.json -k "${FIREBASE_SECRETS_ENCRYPTION_KEY}"
54-
- run:
55-
name: Authenticate gcloud
56-
command: gcloud auth activate-service-account --key-file .firebase.secrets.json
57-
- run:
58-
name: Run Tests
59-
no_output_timeout: 20m
60-
command: |
61-
gcloud firebase test android run --type instrumentation \
62-
--app app/build/outputs/apk/debug/app-debug.apk \
63-
--test app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk \
64-
--device model=Nexus5X,version=26,locale=en,orientation=portrait \
65-
--project api-project-108380595987 \
66-
--timeout 10m \
67-
--verbosity info
54+
- android/firebase-test:
55+
key-file: .firebase.secrets.json
56+
type: instrumentation
57+
apk-path: app/build/outputs/apk/debug/app-debug.apk
58+
test-apk-path: app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk
59+
device: model=Nexus5X,version=26,locale=en,orientation=portrait
60+
project: api-project-108380595987
61+
timeout: 10m
6862
- android/save-gradle-cache:
6963
cache-prefix: connected-tests
7064

0 commit comments

Comments
 (0)