forked from signalapp/Signal-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codemagic.yaml
94 lines (94 loc) · 2.49 KB
/
codemagic.yaml
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
definitions:
env_versions: &env_versions
xcode: latest
triggering:
push: &push_event
events:
- push
scripts:
- &initializeSubmodules
name: Initialize Submodules
script: make dependencies
- &bundleInstall
name: Bundle Install
script: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- ¶llelTasks
name: Parallel Tasks
script: defaults write com.apple.Xcode PBXNumberOfParallelBuildSubtasks 8
- &buildAndTest
name: Build and Test
script: |
bundle exec fastlane scan \
--scheme Signal \
--output_types junit \
--skip_package_dependencies_resolution \
--disable_package_automatic_updates \
--xcargs '-test-timeouts-enabled YES -maximum-test-execution-time-allowance 60' \
|| formatFailures
ignore_failure: true
workflows:
# ios-m1-mac-pro-workflow:
# name: iOS Mac Pro Workflow
# instance_type: mac_pro
# environment:
# <<: *env_versions
# triggering:
# <<: *push_event
# scripts:
# - bundle update --bundler
# - *initializeSubmodules
# - *bundleInstall
# - *buildAndTest
ios-mac-mini-m1-workflow:
name: iOS Mac mini M1 Workflow
instance_type: mac_mini_m1
environment:
<<: *env_versions
triggering:
<<: *push_event
scripts:
- bundle update --bundler
- *initializeSubmodules
- *bundleInstall
- *buildAndTest
ios-mac-mini-m1-parallel-workflow:
name: iOS Mac mini M1 Parallel Workflow
instance_type: mac_mini_m1
environment:
<<: *env_versions
triggering:
<<: *push_event
scripts:
- bundle update --bundler
- *initializeSubmodules
- *bundleInstall
- *parallelTasks
- *buildAndTest
ios-mac-mini-m2-workflow:
name: iOS Mac mini M2 Workflow
instance_type: mac_mini_m2
environment:
<<: *env_versions
triggering:
<<: *push_event
scripts:
- bundle update --bundler
- *initializeSubmodules
- *bundleInstall
- *buildAndTest
ios-mac-mini-m2-parallel-workflow:
name: iOS Mac mini M2 Parallel Workflow
environment:
<<: *env_versions
triggering:
<<: *push_event
scripts:
- sysctl -n hw.ncpu
- /usr/sbin/system_profiler SPHardwareDataType
- bundle update --bundler
- *initializeSubmodules
- *bundleInstall
- *parallelTasks
- *buildAndTest