Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run connected tests nightly on Firebase Test Lab #9836

Merged
merged 1 commit into from
May 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .circleci/.firebase.secrets.json.enc
Binary file not shown.
34 changes: 34 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,13 @@ workflows:
- strings-check
- test
- lint
nightly:
triggers:
- schedule:
cron: "0 0 * * *"
filters:
branches:
only:
- develop
jobs:
- connected-tests