-
Notifications
You must be signed in to change notification settings - Fork 5
/
bitrise.yml
121 lines (121 loc) · 3.12 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
115
116
117
118
119
120
121
format_version: '11'
default_step_lib_source: 'https://github.com/bitrise-io/bitrise-steplib.git'
project_type: android
trigger_map:
- push_branch: main
workflow: publish
- pull_request_source_branch: '*'
workflow: check
pull_request_target_branch: main
workflows:
build_apk:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@6: {}
- cache-pull@2: {}
inputs:
- gradlew_path: $PROJECT_LOCATION/gradlew
- script@1:
title: Lint
inputs:
- content: |-
set -e
set -x
./gradlew ktlint
- script@1:
title: Test
inputs:
- content: |-
set -e
set -x
./gradlew testDebugUnitTest
- android-build@1:
inputs:
- variant: debug
- module: app
- deploy-to-bitrise-io@2: {}
- cache-push@2: {}
check:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@6: {}
- cache-pull@2: {}
inputs:
- gradlew_path: $PROJECT_LOCATION/gradlew
- script@1:
title: Lint
inputs:
- content: |-
set -e
set -x
./gradlew ktlint
- script@1:
inputs:
- content: |-
#!/usr/bin/env bash
set -e
set -x
./gradlew detekt
- script@1:
title: Test
inputs:
- content: |-
set -e
set -x
./gradlew testDebugUnitTest
- deploy-to-bitrise-io@2: {}
- cache-push@2: {}
publish:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@6: {}
- cache-pull@2: {}
inputs:
- gradlew_path: $PROJECT_LOCATION/gradlew
- script@1:
title: Lint
inputs:
- content: |-
set -e
set -x
./gradlew ktlint
- script@1:
title: Test
inputs:
- content: |-
set -e
set -x
./gradlew testDebugUnitTest
- android-build@1:
inputs:
- variant: debug
- module: app
- appcenter-deploy-android@2:
inputs:
- owner_name: $APPCENTER_OWNER_NAME
- app_name: $APPCENTER_APP_NAME
- distribution_group: $APPCENTER_DIST_GROUP
- debug: 'yes'
- app_path: $BITRISE_APK_PATH
- api_token: $APPCENTER_API_KEY
- cache-push@2: {}
meta:
bitrise.io:
stack: linux-docker-android-20.04
app:
envs:
- opts:
is_expand: false
PROJECT_LOCATION: .
- opts:
is_expand: false
MODULE: app
- opts:
is_expand: false
VARIANT: debug