-
Notifications
You must be signed in to change notification settings - Fork 2
/
project.yml
214 lines (206 loc) · 5.75 KB
/
project.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
name: ios-golden-sample-app
options:
bundleIdPrefix: com.backbase
deploymentTarget:
iOS: 15.0
# While TestPlans are not supported by XcodeGen, we manually inject the XML into the scheme.
# This is enough for Xcode 11 or 12 to read in order to use the Test Plan.
postGenCommand: >-
FILE='ios-golden-sample-app.xcodeproj/xcshareddata/xcschemes/SnapshotTests.xcscheme';
sed -i '' -E 's/<\/Testables>/<\/Testables><TestPlans><TestPlanReference reference="container:TestPlans\/newTestPlan.xctestplan"><\/TestPlanReference><TestPlanReference reference="container:TestPlans\/newTestPlan.xctestplan" default="YES"><\/TestPlanReference><\/TestPlans>/g' $FILE;
targets:
AccountsJourney:
type: framework
platform: iOS
deploymentTarget:
iOS: 15.0
info:
path: accounts-journey/Info.plist
properties:
CFBundleShortVersionString: $(MARKETING_VERSION)
settings:
base:
SUPPORTS_MACCATALYST: NO
MARKETING_VERSION: 0.0.1
BUILD_LIBRARY_FOR_DISTRIBUTION: $(inherited)
sources:
- path: accounts-journey
excludes:
- Info.plist
createIntermediateGroups: true
- path: assets
createIntermediateGroups: true
scheme:
testTargets:
- AccountsJourneyUnitTests
gatherCoverageData: true
preBuildScripts:
- name: SwiftLint
script: |
${PODS_ROOT}/SwiftLint/swiftlint --config .swiftlint.yml
GoldenAccountsUseCase:
type: framework
platform: iOS
deploymentTarget:
iOS: 15.0
info:
path: accounts-use-case/Info.plist
properties:
CFBundleShortVersionString: $(MARKETING_VERSION)
settings:
base:
SUPPORTS_MACCATALYST: NO
MARKETING_VERSION: 0.0.1
BUILD_LIBRARY_FOR_DISTRIBUTION: $(inherited)
sources:
- path: accounts-use-case
excludes:
- Info.plist
createIntermediateGroups: true
scheme:
testTargets:
- GoldenAccountsUseCaseUnitTests
gatherCoverageData: true
dependencies:
- target: AccountsJourney
link: true
preBuildScripts:
- name: SwiftLint
script: |
${PODS_ROOT}/SwiftLint/swiftlint --config .swiftlint.yml
GoldenSampleApp:
type: application
platform: iOS
deploymentTarget:
iOS: 15.0
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.backbase.ebpsandbox.retailus
MARKETING_VERSION: 0.0.1
info:
path: app/Info.plist
properties:
CFBundleShortVersionString: $(MARKETING_VERSION)
CFBundleName: GoldenSampleApp
UILaunchStoryboardName: LaunchScreen
sources:
- path: app
excludes: Info.plist
createIntermediateGroups: true
- path: assets
createIntermediateGroups: true
dependencies:
- target: GoldenAccountsUseCase
embed: true
- target: AccountsJourney
embed: true
preBuildScripts:
- name: SwiftLint
script: |
${PODS_ROOT}/SwiftLint/swiftlint --config .swiftlint.yml
GoldenSampleAllTests:
type: framework
platform: iOS
info:
path: Tests/all-tests/Info.plist
codeSign: false
settings:
base:
MARKETING_VERSION: 0.0.1
dependencies:
- target: AccountsJourney
link: false
- target: GoldenAccountsUseCase
link: false
scheme:
gatherCoverageData: true
testTargets:
- name: AccountsJourneyUnitTests
parallelizable: false
randomExecutionOrder: true
- name: GoldenAccountsUseCaseUnitTests
parallelizable: false
randomExecutionOrder: true
# - name: GoldenSampleUITests
# parallelizable: true
# randomExecutionOrder: false
AccountsJourneyUnitTests:
type: bundle.unit-test
platform: iOS
info:
path: Tests/accounts-journey/unit-tests/Info.plist
codeSign: false
dependencies:
- target: AccountsJourney
link: true
sources:
- path: Tests/accounts-journey/unit-tests
excludes: Info.plist
createIntermediateGroups: true
GoldenAccountsUseCaseUnitTests:
type: bundle.unit-test
platform: iOS
info:
path: Tests/accounts-use-case/unit-tests/Info.plist
codeSign: false
dependencies:
- target: AccountsJourney
link: true
- target: GoldenAccountsUseCase
link: true
sources:
- path: Tests/accounts-use-case/unit-tests
excludes: Info.plist
createIntermediateGroups: true
# UITests1
GoldenSampleUITests:
type: bundle.ui-testing
platform: iOS
info:
path: appUITests/Info.plist
codeSign: false
deploymentTarget:
iOS: 15.0
sources:
- path: appUITests
excludes: Info.plist
dependencies:
- target: GoldenSampleApp
link: true
scheme:
testTargets:
- GoldenSampleUITests
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.backbase.goldensampleapp.UITests
# Snapshot tests
SnapshotTests:
scheme:
testTargets:
- name: SnapshotTests
randomExecutionOrder: true
type: bundle.ui-testing
platform: iOS
deploymentTarget: 15.0
info:
path: Tests/SnapshotTests/Info.plist
codeSign: false
dependencies:
- package: SnapshotTesting
- target: GoldenSampleApp
link: true
- target: AccountsJourney
link: true
sources:
- path: Tests/SnapshotTests
excludes:
- Info.plist
- __Snapshots__
createIntermediateGroups: true
- path: Tests/SnapshotTests/__Snapshots__
type: folder
createIntermediateGroups: true
packages:
SnapshotTesting:
github: pointfreeco/swift-snapshot-testing
from: 1.11.0