-
Notifications
You must be signed in to change notification settings - Fork 3.2k
/
config.yml
78 lines (72 loc) · 1.97 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: 2.1
executors:
plaid-android-executor:
docker:
- image: circleci/android:api-29
working_directory: ~/plaid
environment:
JAVA_TOOL_OPTIONS: "-Xmx2048m"
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.workers.max=2"
TERM: dumb
plaid-gcloud-executor:
docker:
- image: google/cloud-sdk:latest
working_directory: ~/plaid
environment:
TERM: dumb
commands:
store-plaid-artifacts:
description: "It stores Lint & Test artifacts"
parameters:
artifact-path:
type: string
steps:
- store_artifacts:
path: <<parameters.artifact-path>>
jobs:
build:
executor: plaid-android-executor
steps:
- checkout
- run:
name: Download Dependencies
command: ./gradlew dependencies
- run:
name: Run JVM Tests & Lint, assemble app and test APKs for debug and release
command: ./gradlew check assemble assembleAndroidTest --stacktrace
- run:
name: Gather Lint results
command: scripts/copy_lint_results.sh
- store-plaid-artifacts:
artifact-path: ci_results/lint
# Persist build directory for all modules
- persist_to_workspace:
root: .
paths:
- build
- ./**/build
test_instrumented:
executor: plaid-gcloud-executor
steps:
- checkout
- attach_workspace:
at: ~/plaid
- run:
name: Setup Google Cloud auth
command: scripts/ftl_setup.sh
- run:
name: Run tests on Firebase Test Lab and download results
command: scripts/ftl_run_tests.sh $CIRCLE_BUILD_NUM firebase_test_results
when: always
- store-plaid-artifacts:
artifact-path: firebase_test_results
- store_test_results:
path: firebase_test_results
workflows:
version: 2
build_and_test:
jobs:
- build
- test_instrumented:
requires:
- build