-
Notifications
You must be signed in to change notification settings - Fork 30
/
config.yml
71 lines (70 loc) · 2.06 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
version: 2.1
orbs:
android: circleci/android@2.5.0
codecov: codecov/codecov@4.0.1
jobs:
build:
working_directory: ~/code
executor:
name: android/android-machine
tag: 2024.01.1
steps:
- checkout
- android/change-java-version:
java-version: 17
- android/accept-licenses
- run:
name: Build
command: ./gradlew assembleDebug
- run:
name: Check
command: ./gradlew testDebug jacocoTestReport lintDebug buildDashboard
- run:
name: Distribute
command: |
echo $FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_JSON_B64 | base64 -d | tee $(pwd)/google-services-account.json > /dev/null
export FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_JSON=$(pwd)/google-services-account.json && ./gradlew appDistributionUploadDebug
- codecov/upload
- store_artifacts:
path: app/build/outputs
destination: outputs
- store_artifacts:
path: app/build/reports
destination: reports
- store_test_results:
path: app/build/test-results
androidTest:
working_directory: ~/code
executor:
name: android/android-machine
tag: 2024.01.1
steps:
- checkout
- android/change-java-version:
java-version: 17
- android/accept-licenses
- android/create-avd:
avd-name: test
install: true
system-image: system-images;android-32;default;x86_64
- android/start-emulator:
avd-name: test
no-window: true
restore-gradle-cache-prefix: v1a
- android/run-tests:
test-command: ./gradlew connectedAndroidTest --stacktrace
- android/save-gradle-cache:
cache-prefix: v1a
- store_artifacts:
path: app/build/outputs
destination: outputs
- store_artifacts:
path: app/build/reports
destination: reports
- store_test_results:
path: app/build/test-results
workflows:
build_and_test:
jobs:
- build
- androidTest