@@ -226,93 +226,98 @@ workflows:
226
226
- deploy-to-bitrise-io@2 : {}
227
227
envs :
228
228
- DEFAULT_TEST_DEVICE : platform=iOS Simulator,name=iPhone 12 mini,OS=16.4
229
- framework-tests :
229
+ framework_tests_shared :
230
230
steps :
231
- - fastlane@3 :
232
- inputs :
233
- - lane : preflight
234
- title : fastlane preflight
235
- - fastlane@3 :
236
- inputs :
237
- - lane : threeds2_tests
238
- title : fastlane threeds2_tests
239
231
- xcode-test@4 :
240
232
inputs :
241
- - destination : $DEFAULT_TEST_DEVICE
233
+ - destination : $TEST_DEVICE_VAR
242
234
- test_repetition_mode : retry_on_failure
243
235
- maximum_test_repetitions : " 2"
244
236
- scheme : StripeiOS
245
237
- xcode-test@4 :
246
238
inputs :
247
- - destination : $DEFAULT_TEST_DEVICE
239
+ - destination : $TEST_DEVICE_VAR
248
240
- test_repetition_mode : retry_on_failure
249
241
- maximum_test_repetitions : " 2"
250
242
- scheme : StripePayments
251
243
- xcode-test@4 :
252
244
inputs :
253
- - destination : $DEFAULT_TEST_DEVICE
245
+ - destination : $TEST_DEVICE_VAR
254
246
- test_repetition_mode : retry_on_failure
255
247
- maximum_test_repetitions : " 2"
256
248
- scheme : StripePaymentsUI
257
249
- xcode-test@4 :
258
250
inputs :
259
- - destination : $DEFAULT_TEST_DEVICE
251
+ - destination : $TEST_DEVICE_VAR
260
252
- test_repetition_mode : retry_on_failure
261
253
- maximum_test_repetitions : " 2"
262
254
- scheme : StripePaymentSheet
263
255
- xcode-test@4 :
264
256
inputs :
265
- - destination : $DEFAULT_TEST_DEVICE
257
+ - destination : $TEST_DEVICE_VAR
266
258
- test_repetition_mode : retry_on_failure
267
259
- maximum_test_repetitions : " 2"
268
260
- scheme : StripeCameraCore
269
261
- xcode-test@4 :
270
262
inputs :
271
- - destination : $DEFAULT_TEST_DEVICE
263
+ - destination : $TEST_DEVICE_VAR
272
264
- test_repetition_mode : retry_on_failure
273
265
- maximum_test_repetitions : " 2"
274
266
- scheme : StripeCore
275
267
- xcode-test@4 :
276
268
inputs :
277
- - destination : $DEFAULT_TEST_DEVICE
269
+ - destination : $TEST_DEVICE_VAR
278
270
- test_repetition_mode : retry_on_failure
279
271
- maximum_test_repetitions : " 2"
280
272
- scheme : StripeConnect
281
273
- xcode-test@4 :
282
274
inputs :
283
- - destination : $DEFAULT_TEST_DEVICE
275
+ - destination : $TEST_DEVICE_VAR
284
276
- test_repetition_mode : retry_on_failure
285
277
- maximum_test_repetitions : " 2"
286
278
- scheme : StripeIdentity
287
279
- xcode-test@4 :
288
280
inputs :
289
- - destination : $DEFAULT_TEST_DEVICE
281
+ - destination : $TEST_DEVICE_VAR
290
282
- test_repetition_mode : retry_on_failure
291
283
- maximum_test_repetitions : " 2"
292
284
- scheme : StripeFinancialConnections
293
285
- xcode-test@4 :
294
286
inputs :
295
- - destination : $DEFAULT_TEST_DEVICE
287
+ - destination : $TEST_DEVICE_VAR
296
288
- test_repetition_mode : retry_on_failure
297
289
- maximum_test_repetitions : " 2"
298
290
- scheme : StripeCardScan
299
291
- xcode-test@4 :
300
292
inputs :
301
- - destination : $DEFAULT_TEST_DEVICE
293
+ - destination : $TEST_DEVICE_VAR
302
294
- test_repetition_mode : retry_on_failure
303
295
- maximum_test_repetitions : " 2"
304
296
- scheme : StripeApplePay
305
297
- xcode-test@4 :
306
298
inputs :
307
- - destination : $DEFAULT_TEST_DEVICE
299
+ - destination : $TEST_DEVICE_VAR
308
300
- test_repetition_mode : retry_on_failure
309
301
- maximum_test_repetitions : " 2"
310
302
- scheme : StripeUICore
311
303
- deploy-to-bitrise-io@2 : {}
312
304
- save-spm-cache@1 : {}
305
+ framework-tests :
306
+ steps :
307
+ - fastlane@3 :
308
+ inputs :
309
+ - lane : preflight
310
+ title : fastlane preflight
311
+ - fastlane@3 :
312
+ inputs :
313
+ - lane : threeds2_tests
314
+ title : fastlane threeds2_tests
313
315
before_run :
314
316
- prep_all
317
+ - framework_tests_shared
315
318
after_run : []
319
+ envs :
320
+ - TEST_DEVICE_VAR : $DEFAULT_TEST_DEVICE
316
321
meta :
317
322
bitrise.io :
318
323
stack : osx-xcode-16.0.x
@@ -327,83 +332,12 @@ workflows:
327
332
inputs :
328
333
- lane : preflight
329
334
title : fastlane preflight
330
- - xcode-test@4 :
331
- inputs :
332
- - destination : $DEFAULT_TEST_DEVICE_26_0
333
- - test_repetition_mode : retry_on_failure
334
- - maximum_test_repetitions : " 2"
335
- - scheme : StripeiOS
336
- - xcode-test@4 :
337
- inputs :
338
- - destination : $DEFAULT_TEST_DEVICE_26_0
339
- - test_repetition_mode : retry_on_failure
340
- - maximum_test_repetitions : " 2"
341
- - scheme : StripePayments
342
- - xcode-test@4 :
343
- inputs :
344
- - destination : $DEFAULT_TEST_DEVICE_26_0
345
- - test_repetition_mode : retry_on_failure
346
- - maximum_test_repetitions : " 2"
347
- - scheme : StripePaymentsUI
348
- - xcode-test@4 :
349
- inputs :
350
- - destination : $DEFAULT_TEST_DEVICE_26_0
351
- - test_repetition_mode : retry_on_failure
352
- - maximum_test_repetitions : " 2"
353
- - scheme : StripePaymentSheet
354
- - xcode-test@4 :
355
- inputs :
356
- - destination : $DEFAULT_TEST_DEVICE_26_0
357
- - test_repetition_mode : retry_on_failure
358
- - maximum_test_repetitions : " 2"
359
- - scheme : StripeCameraCore
360
- - xcode-test@4 :
361
- inputs :
362
- - destination : $DEFAULT_TEST_DEVICE_26_0
363
- - test_repetition_mode : retry_on_failure
364
- - maximum_test_repetitions : " 2"
365
- - scheme : StripeCore
366
- - xcode-test@4 :
367
- inputs :
368
- - destination : $DEFAULT_TEST_DEVICE_26_0
369
- - test_repetition_mode : retry_on_failure
370
- - maximum_test_repetitions : " 2"
371
- - scheme : StripeConnect
372
- - xcode-test@4 :
373
- inputs :
374
- - destination : $DEFAULT_TEST_DEVICE_26_0
375
- - test_repetition_mode : retry_on_failure
376
- - maximum_test_repetitions : " 2"
377
- - scheme : StripeIdentity
378
- - xcode-test@4 :
379
- inputs :
380
- - destination : $DEFAULT_TEST_DEVICE_26_0
381
- - test_repetition_mode : retry_on_failure
382
- - maximum_test_repetitions : " 2"
383
- - scheme : StripeFinancialConnections
384
- - xcode-test@4 :
385
- inputs :
386
- - destination : $DEFAULT_TEST_DEVICE_26_0
387
- - test_repetition_mode : retry_on_failure
388
- - maximum_test_repetitions : " 2"
389
- - scheme : StripeCardScan
390
- - xcode-test@4 :
391
- inputs :
392
- - destination : $DEFAULT_TEST_DEVICE_26_0
393
- - test_repetition_mode : retry_on_failure
394
- - maximum_test_repetitions : " 2"
395
- - scheme : StripeApplePay
396
- - xcode-test@4 :
397
- inputs :
398
- - destination : $DEFAULT_TEST_DEVICE_26_0
399
- - test_repetition_mode : retry_on_failure
400
- - maximum_test_repetitions : " 2"
401
- - scheme : StripeUICore
402
- - deploy-to-bitrise-io@2 : {}
403
- - save-spm-cache@1 : {}
404
335
before_run :
405
336
- prep_all_26
337
+ - framework_tests_shared
406
338
after_run : []
339
+ envs :
340
+ - TEST_DEVICE_VAR : $DEFAULT_TEST_DEVICE_26_0
407
341
meta :
408
342
bitrise.io :
409
343
stack : osx-xcode-26.0.x-edge
@@ -613,11 +547,11 @@ workflows:
613
547
- prep_all
614
548
envs :
615
549
- DEFAULT_TEST_DEVICE : platform=iOS Simulator,name=iPhone 12 mini,OS=16.4
616
- prep_all :
550
+ prep_all_shared :
617
551
steps :
618
552
- xcode-start-simulator@0 :
619
553
inputs :
620
- - destination : $DEFAULT_TEST_DEVICE
554
+ - destination : $TEST_DEVICE_OVERRIDE
621
555
- set-env-var@0 :
622
556
inputs :
623
557
- destination_keys : CONFIGURATION_BUILD_DIR
@@ -646,39 +580,16 @@ workflows:
646
580
- paths : |
647
581
vendor
648
582
583
+ prep_all :
584
+ before_run :
585
+ - prep_all_shared
586
+ envs :
587
+ - TEST_DEVICE_OVERRIDE : $DEFAULT_TEST_DEVICE
649
588
prep_all_26 :
650
- steps :
651
- - xcode-start-simulator@0 :
652
- inputs :
653
- - destination : $DEFAULT_TEST_DEVICE_26_0
654
- - set-env-var@0 :
655
- inputs :
656
- - destination_keys : CONFIGURATION_BUILD_DIR
657
- - value : $BITRISE_SOURCE_DIR/stpbuild/products
658
- title : Set CONFIGURATION_BUILD_DIR
659
- - set-env-var@0 :
660
- inputs :
661
- - destination_keys : CONFIGURATION_TEMP_DIR
662
- - value : $BITRISE_SOURCE_DIR/stpbuild/intermediates
663
- title : Set CONFIGURATION_TEMP_DIR
664
- - script@1 :
665
- inputs :
666
- - content : bundle config set path 'vendor/bundle'
667
- is_always_run : true
668
- title : Set Bundler to use local vendor directory
669
-
670
- inputs :
671
- - clone_depth : " 1"
672
-
673
- inputs :
674
- - key : bundle-cache-{{ checksum "Gemfile.lock" }}
675
- - bundler@0 : {}
676
- - save-cache@1 :
677
- inputs :
678
- - key : bundle-cache-{{ checksum "Gemfile.lock" }}
679
- - paths : |
680
- vendor
681
-
589
+ before_run :
590
+ - prep_all_shared
591
+ envs :
592
+ - TEST_DEVICE_OVERRIDE : $DEFAULT_TEST_DEVICE_26_0
682
593
size-report :
683
594
steps :
684
595
- script@1 :
0 commit comments