-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
976 lines (863 loc) · 25.5 KB
/
.gitlab-ci.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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
include:
- project: "proton/devops/atlas-deploy"
ref: main
file: "/scenarios/pipeline-env.yml"
- project: "translations/generator"
ref: master
file: "/jobs/sync-crowdin.gitlab-ci.yml"
- project: "translations/generator"
ref: master
file: "/jobs/commit-locales.gitlab-ci.yml"
stages:
- i18n
- releasing
- linting
- deploy
- unit_test
- ui_and_integration_test
- report
- cleanup
- verify
- github
variables:
LC_ALL: "en_US.UTF-8"
LANG: "en_US.UTF-8"
GEM_HOME: "$CI_PROJECT_DIR/gem"
ATLAS_DEPLOY_LIST: ""
GIT_DEPTH: 20
GIT_STRATEGY: clone
FF_ENABLE_JOB_CLEANUP: "true"
.set_up_simulator: &set_up_simulator
- DEVICE_NAME=$CI_PIPELINE_ID-$CI_JOB_NAME
- DEVICE_OS=17.0.1
- DEVICE_RUNTIME=iOS$DEVICE_OS
- xcrun simctl create $DEVICE_NAME "iPhone 15" $DEVICE_RUNTIME
.add_private_ssh_key: &add_private_ssh_key
- echo "$CI_SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
.clone_pmconstants: &clone_pmconstants
- rm -rf ../pmconstants
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@${PROTON_GIT_URL}/apple/shared/pmconstants ../pmconstants
.tear_down_simulator: &tear_down_simulator
- DEVICE_NAME=$CI_PIPELINE_ID-$CI_JOB_NAME
- xcrun simctl delete $DEVICE_NAME
.rules_mr: &rules_mr
- if: '$CI_PIPELINE_SOURCE == "web"'
when: never
- if: "$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS"
when: never
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: always
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_PIPELINE_SOURCE == "merge_request_event" || $CI_COMMIT_BRANCH == "develop"
variables:
ATLAS_DEPLOY_ENV: "true"
- if: $CI_OPEN_MERGE_REQUESTS
when: never
- if: $CI_PIPELINE_SOURCE == "push"
when: never
- if: $CI_COMMIT_BRANCH
variables:
TEST: "manual"
releasing:
stage: releasing
needs: []
artifacts:
when: always
name: "ReleaseNotes-$CI_COMMIT_SHA"
paths:
- ReleaseNotes.md
expire_in: never
script:
- git remote set-url origin https://protoncore:$PROTONCORE_ACCESS_TOKEN@${PROTON_GIT_URL}/apple/shared/protoncore.git
- git remote -v
- bash scripts/finish_release_mr_with_new_version.sh
<<: &release_jobs
rules:
- if: '$CI_PIPELINE_SOURCE == "web"'
when: never
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: never
- if: '$CI_COMMIT_TITLE =~ /^Merge branch .release\/.+ into .+$/'
when: always
- if: "$CI_COMMIT_BRANCH"
when: never
allow_failure: false
interruptible: false
tags:
- macstadium-m1-protoncore
github:mirror:
stage: github
rules:
- if: '$CI_PIPELINE_SOURCE == "web"'
when: never
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: never
- if: '$CI_COMMIT_TITLE =~ /^Merge branch .release\/.+ into .+$/'
when: never
- if: '$CI_COMMIT_BRANCH == "develop"'
when: always
- if: "$CI_COMMIT_BRANCH"
when: never
allow_failure: false
interruptible: false
variables:
GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_PIPELINE_ID/github-mirror
needs: []
script:
- zsh scripts/mirror_to_github.sh develop
tags:
- account-lane-3
#
# --- Linting ---
#
linting:code-quality:
stage: linting
script:
- env
- tools/portable_swiftlint/swiftlint --config .swiftlint.yml --reporter junit > swiftlint.xml
rules: &rules_mr_and_develop
- if: $CI_PIPELINE_SOURCE == "push"
- if: $TEST == "manual"
when: manual
# We do not want to run jobs if the schedule doesn't deploy
- if: $CI_PIPELINE_SOURCE == "schedule" && $ATLAS_DEPLOY_ENV != "true"
when: never
- when: on_success
needs: []
allow_failure: false
interruptible: true
artifacts:
name: "ios-lint-$CI_COMMIT_SHA"
paths:
- swiftlint.xml
reports:
junit:
- swiftlint.xml
expire_in: 90 days
tags:
- macstadium-m1-protoncore
#
# --- Unit testing ---
#
test:unit:ios:all:
stage: unit_test
retry: 2
rules: *rules_mr_and_develop
allow_failure: false
interruptible: true
before_script:
- *add_private_ssh_key
- *clone_pmconstants
- *set_up_simulator
script:
- fastlane run_unit_tests device_name:$DEVICE_NAME
after_script:
- *tear_down_simulator
- fastlane cleanup_run_unit_tests
- ssh-add -D
artifacts:
name: "ios-tests-$CI_COMMIT_SHA"
when: always
paths:
- fastlane/test_output/UnitTests.xcresult/**
expire_in: 14 days
reports:
junit:
- fastlane/test_output/report.junit
variables:
GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_PIPELINE_ID/account-lane-1
tags:
- account-lane-1
test:unit:macos:all:
stage: unit_test
retry: 2
rules: *rules_mr_and_develop
allow_failure: false
interruptible: true
before_script:
- *add_private_ssh_key
- *clone_pmconstants
script:
- fastlane run_unit_tests_macos
after_script:
- fastlane cleanup_run_unit_tests_macos
artifacts:
paths:
- fastlane/test_output/*xcresult/**
variables:
GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_PIPELINE_ID/account-lane-2
tags:
- account-lane-2
test:apphost:macos:all:
stage: unit_test
retry: 2
rules: *rules_mr_and_develop
allow_failure: false
interruptible: true
before_script:
- *add_private_ssh_key
- *clone_pmconstants
script:
- fastlane run_apphosted_test_macos
after_script:
- fastlane cleanup_run_unit_tests_macos
artifacts:
paths:
- fastlane/test_output/*xcresult/**
variables:
GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_PIPELINE_ID/account-lane-6
tags:
- account-lane-6
test:unit:localization:
stage: unit_test
retry: 1
rules: *rules_mr_and_develop
allow_failure: false
interruptible: true
before_script:
- *add_private_ssh_key
- *set_up_simulator
script:
- fastlane run_localization_tests device_name:$DEVICE_NAME
after_script:
- *tear_down_simulator
- fastlane cleanup_run_localization_tests
variables:
GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_PIPELINE_ID/account-lane-3
tags:
- account-lane-3
#
# --- Integration testing
#
test:unit:integration:
stage: ui_and_integration_test
retry: 1
rules: *rules_mr_and_develop
allow_failure: false
interruptible: true
needs:
- job: deploy:review
artifacts: true
before_script:
- *add_private_ssh_key
- *clone_pmconstants
- *set_up_simulator
script:
- fastlane run_integration_tests device_name:$DEVICE_NAME xcargs:DYNAMIC_DOMAIN="${DYNAMIC_DOMAIN}"
after_script:
- *tear_down_simulator
- fastlane cleanup_run_integration_tests
artifacts:
paths:
- fastlane/test_output/*xcresult/**
variables:
GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_PIPELINE_ID/account-lane-4
tags:
- account-lane-4
#
# --- UI testing ---
#
# UI light tests are now temporarily disable because of flakiness. CP-6530
test:ui:light:
retry: 1
rules:
- if: '$CI_PIPELINE_SOURCE == "web"'
when: never
- if: "$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS"
when: never
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
script:
- fastlane build_ui_tests device_name:$DEVICE_NAME
- bash scripts/run_ui_tests_on_ci.sh --light --device $DEVICE_NAME $DEVICE_OS --dynamic-domain ${DYNAMIC_DOMAIN}
<<: &ui_testing_common_configuration
stage: ui_and_integration_test
allow_failure: false
interruptible: true
needs:
- job: linting:code-quality
artifacts: false
- job: deploy:review
artifacts: true
artifacts:
when: always
name: "test-report-$CI_PIPELINE_IID"
paths:
- UITestsResults-${CI_PIPELINE_IID}.html
expire_in: 7 days
before_script:
- *add_private_ssh_key
- *clone_pmconstants
- *set_up_simulator
after_script:
- *tear_down_simulator
- rm -rf ~/ProtonCore/UITests/${CI_PIPELINE_IID}/DerivedData/
- fastlane cleanup_build_ui_tests
- ssh-add -D
variables:
GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_PIPELINE_ID/account-lane-5
tags:
- account-lane-5
# ui tests smoke is run on merge to develop
test:ui:smoke:
rules:
- if: '$CI_PIPELINE_SOURCE == "web"'
when: never
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: never
- if: "$CI_PIPELINE_SOURCE"
when: never
- if: "$CI_COMMIT_BRANCH"
when: never
script:
- fastlane build_ui_tests device_name:$DEVICE_NAME
- bash scripts/run_ui_tests_on_ci.sh --smoke --device $DEVICE_NAME $DEVICE_OS --dynamic-domain ${DYNAMIC_DOMAIN}
<<: *ui_testing_common_configuration
# ui tests regression is run only on schedules
test:ui:regression:
rules:
# We do not want to run the job if the schedule doesn't deploy
- if: $CI_PIPELINE_SOURCE == "schedule" && $ATLAS_DEPLOY_ENV == "true"
when: on_success
- when: never
timeout: 3 hours 30 minutes
script:
- fastlane build_ui_tests device_name:$DEVICE_NAME
- bash scripts/run_ui_tests_on_ci.sh --regression --device $DEVICE_NAME $DEVICE_OS --dynamic-domain ${DYNAMIC_DOMAIN}
<<: *ui_testing_common_configuration
#
# --- Coverage reports ---
#
report:integration:code:coverage:
retry: 1
coverage: '/Average Coverage.* (\d+\.\d+%)/'
stage: report
interruptible: true
rules: *rules_mr_and_develop
needs:
- job: test:unit:integration
artifacts: true
before_script:
- *add_private_ssh_key
- bash scripts/generate_obfuscated_constants.sh
- ls -l fastlane/test_output
script:
# Call xcov from fastlane
- fastlane integration_test_reports
# generate alt coverage json from xcresult
- xcrun xccov view --report --json fastlane/test_output/IntegrationTests.xcresult > fastlane/test_output/IntegrationTests.json
# Print and process the result for Gitlab coverage capture
- jq '"Line Coverage \(.lineCoverage * 100 |tostring | .[0:5])%"' fastlane/test_output/IntegrationTests.json
# generate cobertura xml from coverage json
- xcc generate fastlane/test_output/IntegrationTests.json fastlane/test_output cobertura-xml --verbose
# Split big cobertura file
- python3 scripts/split-by-package.py fastlane/test_output/cobertura.xml fastlane/test_output/
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: fastlane/test_output/cobertura-*.xml
variables:
GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_PIPELINE_ID/account-lane-4
tags:
- account-lane-4
report:apphost:macos:code:coverage:
retry: 1
coverage: '/Average Coverage.* (\d+\.\d+%)/'
stage: report
interruptible: true
rules: *rules_mr_and_develop
needs:
- job: test:apphost:macos:all
artifacts: true
before_script:
- *add_private_ssh_key
- bash scripts/generate_obfuscated_constants.sh
- ls -l fastlane/test_output
script:
# Call xcov from fastlane
- fastlane macos_apphost_test_reports
# generate alt coverage json from xcresult
- xcrun xccov view --report --json fastlane/test_output/ProtonCore-Keymaker-macOS-AppHost.xcresult > fastlane/test_output/ProtonCore-Keymaker-macOS-AppHost.json
# Print and process the result for Gitlab coverage capture
- jq '"Line Coverage \(.lineCoverage * 100 |tostring | .[0:5])%"' fastlane/test_output/ProtonCore-Keymaker-macOS-AppHost.json
# generate cobertura xml from coverage json
- xcc generate fastlane/test_output/ProtonCore-Keymaker-macOS-AppHost.json fastlane/test_output cobertura-xml --verbose
# Split big cobertura file
- python3 scripts/split-by-package.py fastlane/test_output/cobertura.xml fastlane/test_output/
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: fastlane/test_output/cobertura-*.xml
variables:
GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_PIPELINE_ID/account-lane-6
tags:
- account-lane-6
report:unit:macos:code:coverage:
retry: 1
coverage: '/Average Coverage.* (\d+\.\d+%)/'
stage: report
interruptible: true
rules: *rules_mr_and_develop
needs:
- job: test:unit:macos:all
artifacts: true
before_script:
- *add_private_ssh_key
- bash scripts/generate_obfuscated_constants.sh
- ls -l fastlane/test_output
script:
# Call xcov from fastlane
- fastlane macos_unit_test_reports
# generate alt coverage json from xcresult
- xcrun xccov view --report --json fastlane/test_output/UnitTests.xcresult > fastlane/test_output/UnitTests.json
# Print and process the result for Gitlab coverage capture
- jq '"Line Coverage \(.lineCoverage * 100 |tostring | .[0:5])%"' fastlane/test_output/UnitTests.json
# generate cobertura xml from coverage json
- xcc generate fastlane/test_output/UnitTests.json fastlane/test_output cobertura-xml --verbose
# Split big cobertura file
- python3 scripts/split-by-package.py fastlane/test_output/cobertura.xml fastlane/test_output/
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: fastlane/test_output/cobertura-*.xml
variables:
GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_PIPELINE_ID/account-lane-2
tags:
- account-lane-2
report:unit:ios:code:coverage:
retry: 1
coverage: '/Average Coverage.* (\d+\.\d+%)/'
stage: report
interruptible: true
rules: *rules_mr_and_develop
needs:
- job: test:unit:ios:all
artifacts: true
before_script:
- *add_private_ssh_key
- bash scripts/generate_obfuscated_constants.sh
- ls -l fastlane/test_output
script:
# Call xcov from fastlane
- fastlane unit_test_reports
# generate alt coverage json from xcresult
- xcrun xccov view --report --json fastlane/test_output/UnitTests.xcresult > fastlane/test_output/UnitTests.json
# Print and process the result for Gitlab coverage capture
- jq '"Line Coverage \(.lineCoverage * 100 |tostring | .[0:5])%"' fastlane/test_output/UnitTests.json
# generate cobertura xml from coverage json
- xcc generate fastlane/test_output/UnitTests.json fastlane/test_output cobertura-xml --verbose
# Split big cobertura file
- python3 scripts/split-by-package.py fastlane/test_output/cobertura.xml fastlane/test_output/
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: fastlane/test_output/cobertura-*.xml
variables:
GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_PIPELINE_ID/account-lane-1
tags:
- account-lane-1
#
# --- Verifying modules ---
#
verify:all:AccountDeletion:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_AccountDeletion_all_variants
<<: &building_subspecs_full
stage: verify
retry: 1
rules:
- if: '$CI_COMMIT_BRANCH == "develop"'
when: on_success
- if: '$CI_PIPELINE_SOURCE == "web"'
when: never
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: never
- if: '$CI_COMMIT_BRANCH == "main"'
when: never
- if: "$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS"
when: never
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: "$CI_COMMIT_BRANCH"
when: never
allow_failure: false
interruptible: true
tags:
- macstadium-protoncore-module_building
verify:all:AccountSwitcher:
script:
- fastlane build_AccountSwitcher_all_variants
<<: *building_subspecs_full
verify:all:APIClient:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_APIClient_all_variants
<<: *building_subspecs_full
verify:all:Authentication:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_Authentication_all_variants
<<: *building_subspecs_full
# verify:all:Authentication_KeyGeneration:
# before_script:
# - bash scripts/generate_obfuscated_constants.sh
# script:
# - fastlane build_Authentication_KeyGeneration_all_variants
# <<: *building_subspecs_full
verify:all:Challenge:
script:
- fastlane build_Challenge_all_variants
<<: *building_subspecs_full
verify:all:Common:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_Common_all_variants
<<: *building_subspecs_full
verify:all:GoLibs:
script:
- fastlane build_GoLibs_all_variants
<<: *building_subspecs_full
verify:all:DataModel:
script:
- fastlane build_DataModel_all_variants
<<: *building_subspecs_full
# verify:all:Doh:
# script:
# - fastlane build_Doh_all_variants
# <<: *building_subspecs_full
verify:all:Features:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_Features_all_variants
<<: *building_subspecs_full
verify:all:ForceUpgrade:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_ForceUpgrade_all_variants
<<: *building_subspecs_full
verify:all:Foundations:
script:
- fastlane build_Foundations_all_variants
<<: *building_subspecs_full
verify:all:Hash:
script:
- fastlane build_Hash_all_variants
<<: *building_subspecs_full
verify:all:HumanVerification:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_HumanVerification_all_variants
<<: *building_subspecs_full
verify:all:Keymaker:
script:
- fastlane build_Keymaker_all_variants
<<: *building_subspecs_full
verify:all:KeyManager:
script:
- fastlane build_KeyManager_all_variants
<<: *building_subspecs_full
verify:all:Log:
script:
- fastlane build_Log_all_variants
<<: *building_subspecs_full
# verify:all:Login:
# before_script:
# - bash scripts/generate_obfuscated_constants.sh
# script:
# - fastlane build_Login_all_variants
# <<: *building_subspecs_full
# verify:all:LoginUI:
# before_script:
# - bash scripts/generate_obfuscated_constants.sh
# script:
# - fastlane build_LoginUI_all_variants
# <<: *building_subspecs_full
verify:all:Networking:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_Networking_all_variants
<<: *building_subspecs_full
# verify:all:ObfuscatedConstants:
# before_script:
# - bash scripts/generate_obfuscated_constants.sh
# script:
# - fastlane build_ObfuscatedConstants_all_variants
# <<: *building_subspecs_full
# verify:all:Payments:
# before_script:
# - bash scripts/generate_obfuscated_constants.sh
# script:
# - fastlane build_Payments_all_variants
# <<: *building_subspecs_full
# verify:all:PaymentsUI:
# before_script:
# - bash scripts/generate_obfuscated_constants.sh
# script:
# - fastlane build_PaymentsUI_all_variants
# <<: *building_subspecs_full
verify:all:QuarkCommands:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_QuarkCommands_all_variants
<<: *building_subspecs_full
verify:all:TroubleShooting:
script:
- fastlane build_TroubleShooting_all_variants
<<: *building_subspecs_full
verify:all:Services:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_Services_all_variants
<<: *building_subspecs_full
verify:all:Settings:
script:
- fastlane build_Settings_all_variants
<<: *building_subspecs_full
verify:all:UIFoundations:
script:
- fastlane build_UIFoundations_all_variants
<<: *building_subspecs_full
verify:all:Utilities:
script:
- fastlane build_Utilities_all_variants
<<: *building_subspecs_full
verify:all:VCard:
script:
- fastlane build_VCard_all_variants
<<: *building_subspecs_full
# verify:all:Observability:
# script:
# - fastlane build_Observability_all_variants
# <<: *building_subspecs_full
# build_MissingScopes_all_variants:
# script:
# - fastlane build_MissingScopes_all_variants
# <<: *building_subspecs_full
### create pod build all variant place holder
verify:AccountDeletion:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_AccountDeletion_single_basic_variant
<<: &building_subspecs_lite
stage: verify
retry: 1
rules:
- if: '$CI_PIPELINE_SOURCE == "web"'
when: never
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: never
- if: '$CI_COMMIT_BRANCH == "main"'
when: never
- if: '$CI_COMMIT_BRANCH == "develop"'
when: never
allow_failure: true
- if: "$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS"
when: never
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: "$CI_COMMIT_BRANCH"
when: never
allow_failure: false
interruptible: true
tags:
- macstadium-protoncore-module_building
verify:AccountSwitcher:
script:
- fastlane build_AccountSwitcher_single_basic_variant
<<: *building_subspecs_lite
verify:APIClient:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_APIClient_single_basic_variant
<<: *building_subspecs_lite
verify:Authentication:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_Authentication_single_basic_variant
<<: *building_subspecs_lite
verify:Authentication_KeyGeneration:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_Authentication_KeyGeneration_single_basic_variant
<<: *building_subspecs_lite
verify:Challenge:
script:
- fastlane build_Challenge_single_basic_variant
<<: *building_subspecs_lite
verify:Common:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_Common_single_basic_variant
<<: *building_subspecs_lite
verify:GoLibs:
script:
- fastlane build_GoLibs_single_basic_variant
<<: *building_subspecs_lite
verify:DataModel:
script:
- fastlane build_DataModel_single_basic_variant
<<: *building_subspecs_lite
verify:Doh:
script:
- fastlane build_Doh_single_basic_variant
<<: *building_subspecs_lite
verify:FeatureFlags:
script:
- fastlane build_FeatureFlags_single_basic_variant
<<: *building_subspecs_lite
verify:Features:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_Features_single_basic_variant
<<: *building_subspecs_lite
verify:ForceUpgrade:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_ForceUpgrade_single_basic_variant
<<: *building_subspecs_lite
verify:Foundations:
script:
- fastlane build_Foundations_single_basic_variant
<<: *building_subspecs_lite
verify:Hash:
script:
- fastlane build_Hash_single_basic_variant
<<: *building_subspecs_lite
verify:HumanVerification:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_HumanVerification_single_basic_variant
<<: *building_subspecs_lite
verify:Keymaker:
script:
- fastlane build_Keymaker_single_basic_variant
<<: *building_subspecs_lite
verify:KeyManager:
script:
- fastlane build_KeyManager_single_basic_variant
<<: *building_subspecs_lite
verify:Log:
script:
- fastlane build_Log_single_basic_variant
<<: *building_subspecs_lite
verify:Login:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_Login_single_basic_variant
<<: *building_subspecs_lite
verify:LoginUI:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_LoginUI_single_basic_variant
<<: *building_subspecs_lite
verify:MissingScopes:
script:
- fastlane build_MissingScopes_single_basic_variant
<<: *building_subspecs_lite
verify:Networking:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_Networking_single_basic_variant
<<: *building_subspecs_lite
verify:ObfuscatedConstants:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_ObfuscatedConstants_single_basic_variant
<<: *building_subspecs_lite
verify:Observability:
script:
- fastlane build_Observability_single_basic_variant
<<: *building_subspecs_lite
verify:PasswordRequest:
script:
- fastlane build_PasswordRequest_single_basic_variant
<<: *building_subspecs_lite
verify:Payments:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_Payments_single_basic_variant
<<: *building_subspecs_lite
verify:PaymentsUI:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_PaymentsUI_single_basic_variant
<<: *building_subspecs_lite
verify:QuarkCommands:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_QuarkCommands_single_basic_variant
<<: *building_subspecs_lite
verify:TroubleShooting:
script:
- fastlane build_TroubleShooting_single_basic_variant
<<: *building_subspecs_lite
verify:Services:
before_script:
- bash scripts/generate_obfuscated_constants.sh
script:
- fastlane build_Services_single_basic_variant
<<: *building_subspecs_lite
verify:Settings:
script:
- fastlane build_Settings_single_basic_variant
<<: *building_subspecs_lite
verify:UIFoundations:
script:
- fastlane build_UIFoundations_single_basic_variant
<<: *building_subspecs_lite
verify:Utilities:
script:
- fastlane build_Utilities_single_basic_variant
<<: *building_subspecs_lite
verify:VCard:
script:
- fastlane build_VCard_single_basic_variant
<<: *building_subspecs_lite
### create pod build single variant place holder
#
# --- Translation related tasks ---
#
i18n-crowdin-sync:
stage: i18n
needs: []
variables:
I18N_SYNC_CROWDIN_PROJECT: "apple-core"
extends: .i18n-sync-crowdin-shared-apple
i18n-commit-locales:
stage: i18n
needs: []
variables:
I18N_COMMIT_CROWDIN_PROJECT: "apple-core"
extends: .i18n-commit-locales-shared-apple