Skip to content

Commit

Permalink
Run connected tests on Firebase Test Lab
Browse files Browse the repository at this point in the history
  • Loading branch information
jtreanor committed May 10, 2019
1 parent e0e2982 commit 2486d2b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
Binary file added .circleci/.firebase.secrets.json.enc
Binary file not shown.
25 changes: 25 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,30 @@ jobs:
fi
- android/save-gradle-cache
- android/save-lint-results
connected-tests:
executor:
name: android/default
api-version: "28"
steps:
- checkout
- android/restore-gradle-cache
- copy-gradle-properties
- run:
name: Build
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/WordPress-vanilla-debug.apk
test-apk-path: WordPress/build/outputs/apk/androidTest/vanilla/debug/WordPress-vanilla-debug-androidTest.apk
device: model=Nexus5X,version=26,locale=en,orientation=portrait
project: api-project-108380595987
timeout: 10m
results-history-name: CircleCI WordPress Connected Tests
- android/save-gradle-cache
strings-check:
docker:
- image: circleci/ruby:2.3
Expand All @@ -68,3 +92,4 @@ workflows:
- strings-check
- test
- lint
- connected-tests

0 comments on commit 2486d2b

Please sign in to comment.