/
bitrise.yml
247 lines (246 loc) · 7 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
---
format_version: '11'
default_step_lib_source: 'https://github.com/bitrise-io/bitrise-steplib.git'
project_type: android
workflows:
_Clone-Repo:
steps:
- activate-ssh-key:
title: Activate SSH Key
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone:
title: Clone the repo
_Clone-Scripts-Repo:
steps:
- script:
title: Copy the build configuration custom value of TEMP_SCRIPTS_BRANCH_NAME into SCRIPTS_BRANCH_NAME if defined
inputs:
- content: |-
#!/bin/bash
set -ex
if [ ! -z "$TEMP_SCRIPTS_BRANCH_NAME" ] ; then
envman add --key SCRIPTS_BRANCH_NAME --value "$TEMP_SCRIPTS_BRANCH_NAME"
fi
- activate-ssh-key:
title: Activate SSH Key
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone:
title: Clone the scripts repo
inputs:
- tag: ''
- commit: ''
- branch: "$SCRIPTS_BRANCH_NAME"
- repository_url: git@github.com:foreseecode/mobile-scripts.git
- clone_into_dir: "$BITRISE_SOURCE_DIR/../$scripts_folder"
- script:
title: Checkout BITRISE_GIT_BRANCH if it exists
inputs:
- content: |-
#!/bin/bash
set -ex
cd "$BITRISE_SOURCE_DIR/../$scripts_folder"
git fetch
if git show-branch "remotes/origin/$BITRISE_GIT_BRANCH"; then
echo "Found branch in mobile-scripts $BITRISE_GIT_BRANCH"
git checkout "$BITRISE_GIT_BRANCH"
fi
cd $BITRISE_SOURCE_DIR
Build-AdvancedSample-QA:
steps:
- fastlane:
title: Run fastlane build_advanced_sample_qa
inputs:
- verbose_log: 'yes'
- lane: build_advanced_sample_qa
is_always_run: true
- deploy-to-bitrise-io:
title: Deploy the QA dir to bitrise
inputs:
- deploy_path: "$BITRISE_DEPLOY_DIR_FOR_QA"
is_always_run: false
envs:
- opts:
is_expand: false
BITRISE_DEPLOY_DIR_FOR_QA: "./AdvancedSample/build/outputs/apk/debug/"
before_run:
- _Setup-For-All-Workflows
- _Clone-Scripts-Repo
Build-BasicSample-QA:
steps:
- fastlane:
title: Run fastlane build_basic_sample_qa
inputs:
- verbose_log: 'yes'
- lane: build_basic_sample_qa
is_always_run: true
- deploy-to-bitrise-io:
title: Deploy the QA dir to bitrise
inputs:
- deploy_path: "$BITRISE_DEPLOY_DIR_FOR_QA"
is_always_run: false
envs:
- opts:
is_expand: false
BITRISE_DEPLOY_DIR_FOR_QA: "./BasicSample/build/outputs/apk/debug/"
before_run:
- _Setup-For-All-Workflows
- _Clone-Scripts-Repo
Build-ContactSurvey-QA:
steps:
- fastlane:
title: Run fastlane build_contact_survey_qa
inputs:
- verbose_log: 'yes'
- lane: build_contact_survey_qa
is_always_run: true
- deploy-to-bitrise-io:
title: Deploy the QA dir to bitrise
inputs:
- deploy_path: "$BITRISE_DEPLOY_DIR_FOR_QA"
is_always_run: false
envs:
- opts:
is_expand: false
BITRISE_DEPLOY_DIR_FOR_QA: "./ContactSurvey/build/outputs/apk/debug/"
before_run:
- _Setup-For-All-Workflows
- _Clone-Scripts-Repo
Build-CustomInvite-QA:
steps:
- fastlane:
title: Run fastlane build_custom_invite_qa
inputs:
- verbose_log: 'yes'
- lane: build_custom_invite_qa
is_always_run: true
- deploy-to-bitrise-io:
title: Deploy the QA dir to bitrise
inputs:
- deploy_path: "$BITRISE_DEPLOY_DIR_FOR_QA"
is_always_run: false
envs:
- opts:
is_expand: false
BITRISE_DEPLOY_DIR_FOR_QA: "./CustomInvite/build/outputs/apk/debug/"
before_run:
- _Setup-For-All-Workflows
- _Clone-Scripts-Repo
Build-DbaSample-QA:
steps:
- fastlane:
title: Run fastlane build_dba_sample_qa
inputs:
- verbose_log: 'yes'
- lane: build_dba_sample_qa
is_always_run: true
- deploy-to-bitrise-io:
title: Deploy the QA dir to bitrise
inputs:
- deploy_path: "$BITRISE_DEPLOY_DIR_FOR_QA"
is_always_run: false
envs:
- opts:
is_expand: false
BITRISE_DEPLOY_DIR_FOR_QA: "./DbaSample/build/outputs/apk/debug/"
before_run:
- _Setup-For-All-Workflows
- _Clone-Scripts-Repo
Build-KotlinSample-QA:
steps:
- fastlane:
title: Run fastlane build_kotlin_sample_qa
inputs:
- verbose_log: 'yes'
- lane: build_kotlin_sample_qa
is_always_run: true
- deploy-to-bitrise-io:
title: Deploy the QA dir to bitrise
inputs:
- deploy_path: "$BITRISE_DEPLOY_DIR_FOR_QA"
is_always_run: false
envs:
- opts:
is_expand: false
BITRISE_DEPLOY_DIR_FOR_QA: "./KotlinSample/build/outputs/apk/debug/"
before_run:
- _Setup-For-All-Workflows
- _Clone-Scripts-Repo
Build-LocalizationSample-QA:
steps:
- fastlane:
title: Run fastlane build_localization_sample_qa
inputs:
- verbose_log: 'yes'
- lane: build_localization_sample_qa
is_always_run: true
- deploy-to-bitrise-io:
title: Deploy the QA dir to bitrise
inputs:
- deploy_path: "$BITRISE_DEPLOY_DIR_FOR_QA"
is_always_run: false
envs:
- opts:
is_expand: false
BITRISE_DEPLOY_DIR_FOR_QA: "./LocalizationSample/build/outputs/apk/debug/"
before_run:
- _Setup-For-All-Workflows
- _Clone-Scripts-Repo
Build-All-QA:
before_run:
- _Setup-For-All-Workflows
- _Clone-Scripts-Repo
after_run:
- Build-AdvancedSample-QA
- Build-BasicSample-QA
- Build-ContactSurvey-QA
- Build-CustomInvite-QA
- Build-DbaSample-QA
- Build-KotlinSample-QA
- Build-LocalizationSample-QA
_Setup-For-All-Workflows:
before_run:
- _Clone-Repo
steps:
- set-java-version:
title: Set java version 11
run_if: .IsCI
inputs:
- set_java_version: '11'
- script:
title: Set up the local.properties
inputs:
- content: |-
#!/bin/bash
set -ex
echo "github.user=irrelevant" > local.properties
echo "github.key=$GITHUB_PERSONAL_KEY" >> local.properties
cat local.properties
app:
envs:
- opts:
is_expand: false
scripts_folder: mobile-scripts
- opts:
is_expand: false
PROJECT_LOCATION: "."
- opts:
is_expand: false
MODULE: ''
- opts:
is_expand: false
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx4096m -XX:+HeapDumpOnOutOfMemoryError"
- opts:
is_expand: false
_JAVA_OPTIONS: "-Xms1024m -Xmx4096m"
- opts:
is_expand: false
GRADLEW_PATH: "./gradlew"
- opts:
is_expand: false
SCRIPTS_BRANCH_NAME: core
- opts:
is_expand: false
APPCENTER_DESTINATIONS: "*"
meta:
bitrise.io:
machine_type: standard