-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbitrise.yml
268 lines (254 loc) · 9.36 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
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
---
format_version: '4'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: ios
trigger_map:
- push_branch: develop
workflow: MUKit
- pull_request_source_branch: "*"
workflow: MUComponent
- tag: "*"
workflow: Release
workflows:
MUKit:
steps:
inputs:
- workflows: |-
MUCore
MUComponent
MUSample
- access_token: "$ACCESS_TOKEN"
inputs:
- access_token: "$ACCESS_TOKEN"
envs:
- opts:
is_expand: false
BITRISE_SCHEME: MUKit
MUCore:
steps:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- [email protected]: {}
- [email protected]: {}
- [email protected]: {}
inputs:
- project_path: "$BITRISE_PROJECT_PATH"
inputs:
- project_path: "$BITRISE_PROJECT_PATH"
- scheme: "$BITRISE_SCHEME"
- [email protected]: {}
inputs:
- webhook_url: "$SLACK_URL"
envs:
- opts:
is_expand: false
BITRISE_SCHEME: MUCore
MUComponent:
steps:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- [email protected]: {}
- [email protected]: {}
- [email protected]: {}
inputs:
- project_path: "$BITRISE_PROJECT_PATH"
inputs:
- project_path: "$BITRISE_PROJECT_PATH"
- scheme: "$BITRISE_SCHEME"
- [email protected]: {}
inputs:
- webhook_url: "$SLACK_URL"
envs:
- opts:
is_expand: false
BITRISE_SCHEME: MUComponent
MUSample:
steps:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- [email protected]: {}
- [email protected]: {}
- [email protected]: {}
inputs:
- project_path: "$BITRISE_PROJECT_PATH"
inputs:
- project_path: "$BITRISE_PROJECT_PATH"
- scheme: "$BITRISE_SCHEME"
- [email protected]: {}
inputs:
- webhook_url: "$SLACK_URL"
envs:
- opts:
is_expand: false
BITRISE_SCHEME: MUSample
Release:
steps:
inputs:
- workflows: |-
MUCore
MUComponent
- access_token: "$ACCESS_TOKEN"
inputs:
- access_token: "$ACCESS_TOKEN"
- [email protected]: {}
inputs:
- file_name: MUCore.podspec
- file_content: |-
Pod::Spec.new do |s|
s.name = 'MUCore'
s.version = '$BITRISE_GIT_TAG'
s.license = 'MIT'
s.summary = 'MUCore is a framework that expose reusable core component part of MUKit.'
spec.description = <<-DESC
As we always use the same or a really close object, we made severals components that we want to share with you.
DESC
s.homepage = 'https://gitlab.com/surfin/mu-kit-framework-ios.git'
s.authors = { "Damien NOËL DUBUISSON" => "[email protected]", "Loïc GRIFFIÉ" => "[email protected]" }
s.source = { :git => '[email protected]:surfin/mu-kit-framework-ios.git', :tag => '$BITRISE_GIT_TAG' }
s.swift_version = '4.2'
s.ios.deployment_target = '11.0'
s.source_files = 'Source/**/*.{xib,swift}'
end
title: MUCore podspec
inputs:
- file_name: MUComponent.podspec
- file_content: |-
Pod::Spec.new do |s|
s.name = 'MUComponent'
s.version = '$BITRISE_GIT_TAG'
s.license = 'MIT'
s.summary = 'MUComponent is a UI framework that expose reusable core component part of MUKit.'
spec.description = <<-DESC
As we always use the same or a really close object, with a one time definition
with UIAppearence, we made severals components that we want to share with you.
DESC
s.homepage = 'https://gitlab.com/surfin/mu-kit-framework-ios.git'
s.authors = { "Damien NOËL DUBUISSON" => "[email protected]", "Loïc GRIFFIÉ" => "[email protected]" }
s.source = { :git => '[email protected]:surfin/mu-kit-framework-ios.git', :tag => '$BITRISE_GIT_TAG' }
s.swift_version = '4.2'
s.ios.deployment_target = '11.0'
s.source_files = 'Source/**/*.{xib,swift}'
s.dependency 'MUCore'
end
title: MUComponent podspec
inputs:
- file_name: MUCore.podspec
- file_content: |-
Pod::Spec.new do |s|
s.name = '$PROJECT_NAME'
s.version = '$BITRISE_GIT_TAG'
s.license = 'MIT'
s.summary = '$PROJECT_NAME is a framework that expose reusable component.'
spec.description = <<-DESC
As we always use the same or a really close object, we made severals components that we want to share with you.
DESC
s.homepage = 'https://gitlab.com/surfin/mu-kit-framework-ios.git'
s.authors = { "Damien NOËL DUBUISSON" => "[email protected]", "Loïc GRIFFIÉ" => "[email protected]" }
s.source = { :git => '[email protected]:surfin/mu-kit-framework-ios.git', :tag => '$BITRISE_GIT_TAG' }
s.swift_version = '4.2'
s.ios.deployment_target = '11.0'
s.source_files = 'Source/**/*.{xib,swift}'
s.dependency 'MUCore'
s.dependency 'MUComponent'
end
title: MUKit podspec
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
#pod trunk register [email protected] --description='Bitrise CI'
pod trunk push MUCore.podspec --allow-warnings
# or run a script from your repository, like:
# bash ./path/to/script.sh
# not just bash, e.g.:
# ruby ./path/to/script.rb
title: Publish MUCore
inputs:
- webhook_url: "$SLACK_COCOAPODS"
- text: "--------------------------------------------------------------------------------\n:\U0001F918:
\ Congrats\n\n:\U0001F984: MUCore ($BITRISE_GIT_TAG) successfully published\n:\U0001F680:
\ \\$ pod update MUCore\n:☎️: Tell your friends!\n--------------------------------------------------------------------------------"
is_always_run: false
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
#pod trunk register [email protected] --description='Bitrise CI'
pod trunk push MUComponent.podspec --allow-warnings
# or run a script from your repository, like:
# bash ./path/to/script.sh
# not just bash, e.g.:
# ruby ./path/to/script.rb
title: Publish MUComponent
inputs:
- webhook_url: "$SLACK_COCOAPODS"
- text: "--------------------------------------------------------------------------------\n:\U0001F918:
\ Congrats\n\n:\U0001F984: MUComponent ($BITRISE_GIT_TAG) successfully
published\n:\U0001F680: \\$ pod update MUComponent\n:☎️: Tell your friends!\n--------------------------------------------------------------------------------"
is_always_run: false
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
#pod trunk register [email protected] --description='Bitrise CI'
pod trunk push MUKit.podspec --allow-warnings
# or run a script from your repository, like:
# bash ./path/to/script.sh
# not just bash, e.g.:
# ruby ./path/to/script.rb
title: Publish MUKit
inputs:
- webhook_url: "$SLACK_COCOAPODS"
- text: "--------------------------------------------------------------------------------\n:\U0001F918:
\ Congrats\n\n:\U0001F984: MUKit ($BITRISE_GIT_TAG) successfully published\n:\U0001F680:
\ \\$ pod update MUKit\n:☎️: Tell your friends!\n--------------------------------------------------------------------------------"
is_always_run: false
envs:
- opts:
is_expand: false
BITRISE_SCHEME: MUKit
- opts:
is_expand: false
COCOAPODS_TRUNK_TOKEN: b9b5d6e4515f5e9456501e6d89108e6f
app:
envs:
- opts:
is_expand: false
BITRISE_PROJECT_PATH: MUKit.xcworkspace
- opts:
is_expand: false
BITRISE_EXPORT_METHOD: app-store
- opts:
is_expand: false
PROJECT_NAME: MUKit