forked from checkout/frames-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitrise.yml
241 lines (222 loc) · 6.86 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
format_version: "8"
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: ios
trigger_map:
- pull_request_source_branch: '*'
workflow: pr-checks
workflows:
_checkout-build-pods:
steps:
inputs:
- command: update
- podfile_path: $CHECKOUT_PODFILE
- script@1:
title: Build Checkout Pods Test project
inputs:
- content: |
xcodebuild "-workspace" "Checkout/Samples/CocoapodsSample/CheckoutCocoapodsSample.xcworkspace" "-scheme" "CheckoutCocoapodsSample" "-configuration" "Debug" "-destination" "name=iPhone 14 Pro" "COMPILER_INDEX_STORE_ENABLE=NO" "CODE_SIGNING_ALLOWED=NO" "build" | xcpretty
- cache-push@2: {}
after_run: []
_frames-build-pods:
steps:
inputs:
- podfile_path: $FRAMES_PODFILE
- script@1:
title: Build Pods Test project
inputs:
- content: |
xcodebuild "-workspace" "iOS Example Frame/iOS Example Frame.xcworkspace" "-scheme" "iOS Example Frame" "-configuration" "Debug" "-destination" "name=iPhone 14 Pro" "COMPILER_INDEX_STORE_ENABLE=NO" "CODE_SIGNING_ALLOWED=NO" "build" | xcpretty
- cache-push@2: {}
after_run: []
_checkout-build-spm:
steps:
- xcode-build-for-simulator@1:
title: Build Checkout SPM Test project
inputs:
- project_path: $CHECKOUT_SPM_PROJECT
- scheme: $CHECKOUT_APP_SCHEME
- deploy-to-bitrise-io@1: {}
- cache-push@2: {}
_frames-build-spm:
steps:
- xcode-build-for-simulator@1:
title: Build SPM Test project
inputs:
- project_path: $FRAMES_SPM_PROJECT
- scheme: $FRAMES_APP_SCHEME
- deploy-to-bitrise-io@1: {}
- cache-push@2: {}
_frames-set-up:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@8: {}
- cache-pull@2: {}
- certificate-and-profile-installer@1: {}
after_run: []
_run-uitests:
steps:
- xcode-test:
inputs:
- project_path: $FRAMES_SPM_PROJECT
- scheme: $FRAMES_UITEST_SCHEME
- simulator_device: $UITEST_SIMULATOR_DEVICE
- deploy-to-bitrise-io@1: {}
- cache-push@2: {}
_run-regression-tests:
steps:
- xcode-test:
inputs:
- project_path: $FRAMES_SPM_PROJECT
- scheme: $FRAMES_REGRESSION_TEST_SCHEME
- destination: platform=iOS Simulator,name=iPhone 14 Pro,OS=latest
- simulator_device: $UITEST_SIMULATOR_DEVICE
- [email protected]: {}
- cache-push@2: {}
_run-checkout-tests:
steps:
- script@1:
title: Run Checkout Unit Tests
inputs:
- content: |
xcodebuild -scheme CheckoutTests test -destination "platform=iOS Simulator,name=iPhone 14 Pro,OS=latest"
- deploy-to-bitrise-io@1: {}
- cache-push@2: {}
_run-frames-tests:
steps:
- script@1:
title: Run Frames Unit Tests
inputs:
- content: |
xcodebuild -scheme FramesTests test -destination "platform=iOS Simulator,name=iPhone 14 Pro,OS=latest"
- deploy-to-bitrise-io@1: {}
- cache-push@2: {}
frames-build-pods-release:
steps:
- cocoapods-install@1:
inputs:
- podfile_path: $FRAMES_PODFILE
- script@1:
title: Build Pods Test project
inputs:
- content: |
xcodebuild "-workspace" "iOS Example Frame/iOS Example Frame.xcworkspace" "-scheme" "iOS Example Frame" "-configuration" "Debug" "-destination" "name=iPhone 14 Pro" "COMPILER_INDEX_STORE_ENABLE=NO" "CODE_SIGNING_ALLOWED=NO" "build" | xcpretty
- cache-push@2: {}
after_run: []
before_run:
- _frames-set-up
frames-deploy:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@8: {}
- cache-pull@2: {}
- certificate-and-profile-installer@1: {}
inputs:
- podfile_path: $FRAMES_PODFILE
- xcode-test:
inputs:
- project_path: $FRAMES_COCOAPODS_PROJECT
- scheme: $FRAMES_APP_SCHEME
- xcode-archive@2:
inputs:
- project_path: $FRAMES_COCOAPODS_PROJECT
- scheme: $FRAMES_APP_SCHEME
- export_method: $BITRISE_EXPORT_METHOD
- deploy-to-bitrise-io@1: {}
- cache-push@2: {}
frames-playground:
steps:
- xcode-test:
inputs:
- project_path: $FRAMES_SPM_PROJECT
- scheme: $FRAMES_APP_SCHEME
- deploy-to-bitrise-io@1: {}
- cache-push@2: {}
- slack@3:
inputs:
- webhook_url: $FRAMES_IOS_BUILDS_CHANNEL
frames-pr-checks:
after_run:
- _frames-set-up
- _run-checkout-tests
- _checkout-build-pods
- _checkout-build-spm
- _run-frames-tests
- _frames-build-pods
- _frames-build-spm
- _run-uitests
frames-regression-tests:
after_run:
- _frames-set-up
- _run-regression-tests
frames-test-spm:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@8: {}
- cache-pull@2: {}
- certificate-and-profile-installer@1: {}
- script@1:
title: Build SPM Test project
inputs:
- content: |
xcodebuild "-project" "iOS Example Frame SPM/iOS Example Frame SPM.xcodeproj" "-scheme" "iOS Example Frame" "-configuration" "Debug" "-destination" "name=iPhone 14 Pro" "COMPILER_INDEX_STORE_ENABLE=NO" "CODE_SIGNING_ALLOWED=NO" "build" | xcpretty
- cache-push@2: {}
- slack@3:
inputs:
- webhook_url: $FRAMES_IOS_BUILDS_CHANNEL
pr-checks:
after_run:
- frames-pr-checks
app:
envs:
- opts:
is_expand: false
UITEST_SIMULATOR_DEVICE: iPhone 14 Pro
- opts:
is_expand: false
BITRISE_EXPORT_METHOD: development
- opts:
is_expand: false
BITRISE_DISTRIBUTION_METHOD: development
- opts:
is_expand: false
FRAMES_PODFILE: iOS Example Frame/Podfile
- opts:
is_expand: false
FRAMES_COCOAPODS_PROJECT: iOS Example Frame/iOS Example Frame.xcworkspace
- opts:
is_expand: false
FRAMES_SPM_PROJECT: iOS Example Frame SPM/iOS Example Frame SPM.xcodeproj
- opts:
is_expand: false
FRAMES_APP_SCHEME: iOS Example Frame
- opts:
is_expand: false
FRAMES_UITEST_SCHEME: UITest
- opts:
is_expand: false
FRAMES_REGRESSION_TEST_SCHEME: Regression Tests
- opts:
is_expand: false
FRAMES_TEST_SCHEME: FramesTests
- opts:
is_expand: false
CHECKOUT_PODFILE: Checkout/Samples/CocoapodsSample/Podfile
- opts:
is_expand: false
CHECKOUT_SPM_PROJECT: Checkout/Samples/SPMSample/CheckoutSPMSample.xcodeproj
- opts:
is_expand: false
CHECKOUT_APP_SCHEME: CheckoutSPMSample
- opts:
is_expand: false
CHECKOUT_TEST_SCHEME: CheckoutTests
meta:
bitrise.io:
stack: osx-xcode-14.3.x-ventura
machine_type_id: g2-m1.4core