-
Notifications
You must be signed in to change notification settings - Fork 30
/
.bitrise.yml
114 lines (112 loc) · 3.58 KB
/
.bitrise.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
---
format_version: '13'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: android
meta:
bitrise.io:
stack: linux-docker-android-22.04
machine_type_id: standard
pipelines:
pipelineBuildTestDistribute:
stages:
- stageBuildTestDistribute: {}
stages:
stageBuildTestDistribute:
workflows:
- build: {}
- androidTest: {}
trigger_map:
- push_branch: "*"
pipeline: pipelineBuildTestDistribute
workflows:
androidTest:
steps:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- [email protected]: {}
- set-java-version@1:
inputs:
- set_java_version: '17'
- [email protected]: {}
- android-build-for-ui-testing@0:
inputs:
- variant: "$BUILD_TYPE"
- module: app
- avd-manager@1:
inputs:
- tag: default
- abi: x86_64
- api_level: '34'
- wait-for-android-emulator@1: {}
- android-instrumented-test@0: {}
title: Deploy build outputs to Bitrise.io
inputs:
- deploy_path: "$BITRISE_SOURCE_DIR/app/build/outputs"
- notify_email_list: ''
title: Deploy test reports to Bitrise.io
inputs:
- deploy_path: "$BITRISE_SOURCE_DIR/app/build/reports"
- notify_email_list: ''
build:
steps:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- [email protected]: {}
- set-java-version@1:
inputs:
- set_java_version: '17'
- [email protected]: {}
- android-build@1:
inputs:
- variant: "$BUILD_TYPE"
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
./gradlew testDebug jacocoTestReport lintDebug buildDashboard
title: Check
- script@1:
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# make pipelines' return status equal the last command to exit with a non-zero status, or zero if all commands exit successfully
set -o pipefail
# debug log
set -x
echo $FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_JSON > $BITRISE_SOURCE_DIR/credentials.json
export FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_JSON=$BITRISE_SOURCE_DIR/credentials.json && ./gradlew appDistributionUploadDebug
title: Distribute To Firebase
- codecov@3:
inputs:
- OS: linux
- CODECOV_TOKEN: "$CODECOV_TOKEN"
title: Deploy test reports to Bitrise.io
inputs:
- deploy_path: "$BITRISE_SOURCE_DIR/app/build/reports/jacocoTestReport/"
- notify_email_list: ''
- custom-test-results-export@1:
inputs:
- search_pattern: "*/build/test-results/testDebugUnitTest/*"
- test_name: tests
title: Deploy APK to Bitrise.io
app:
envs:
- opts:
is_expand: false
GRADLE_BUILD_FILE_PATH: build.gradle
- opts:
is_expand: false
BUILD_TYPE: debug
- opts:
is_expand: false
GRADLEW_PATH: "./gradlew"