-
Notifications
You must be signed in to change notification settings - Fork 5
/
project.yml
173 lines (172 loc) · 5.31 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
name: Flare
options:
deploymentTarget:
iOS: 13.0
macOS: 10.15
tvOS: 13.0
watchOS: 7.0
packages:
# External
Concurrency:
url: https://github.com/space-code/concurrency.git
from: 0.0.1
Log:
url: https://github.com/space-code/log.git
from: 1.1.0
Atomic:
url: https://github.com/space-code/atomic.git
from: 1.0.0
SnapshotTesting:
url: https://github.com/pointfreeco/swift-snapshot-testing.git
from: 1.15.3
targets:
UnitTestHostApp:
type: application
supportedDestinations: [iOS, tvOS, macOS]
sources: Tests/UnitTestHostApp
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.spacecode.flare
TARGETED_DEVICE_FAMILY: "1,2,3,4"
SUPPORTED_PLATFORMS: "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator"
scheme:
storeKitConfiguration: "Tests/IntegrationTests/Flare.storekit"
testTargets:
- IntegrationTests
Flare:
type: framework
supportedDestinations: [iOS, tvOS, macOS]
dependencies:
- package: Concurrency
product: Concurrency
- package: Log
product: Log
- package: Atomic
package: Atomic
settings:
base:
GENERATE_INFOPLIST_FILE: YES
TARGETED_DEVICE_FAMILY: "1,2,3,4"
SUPPORTED_PLATFORMS: "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator"
sources:
- path: Sources/Flare
scheme:
testPlans:
- path: Tests/TestPlans/AllTests.xctestplan
defaultPlan: true
- path: Tests/TestPlans/UnitTests.xctestplan
- path: Tests/TestPlans/IntegrationTests.xctestplan
gatherCoverageData: true
coverageTargets:
- Flare
FlareUI:
type: framework
supportedDestinations: [iOS, tvOS, macOS]
dependencies:
- target: Flare
settings:
base:
GENERATE_INFOPLIST_FILE: YES
TARGETED_DEVICE_FAMILY: "1,2,3,4"
SUPPORTED_PLATFORMS: "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator"
PRODUCT_BUNDLE_IDENTIFIER: com.spacecode.flare.ui
sources:
- path: Sources/FlareUI
scheme:
testPlans:
- path: Tests/TestPlans/FlareUIUnitTests.xctestplan
defaultPlan: true
- path: Tests/TestPlans/SnapshotTests.xctestplan
gatherCoverageData: true
coverageTargets:
- FlareUI
FlareMock:
type: framework
supportedDestinations: [iOS, tvOS, macOS]
dependencies:
- target: Flare
settings:
base:
GENERATE_INFOPLIST_FILE: YES
TARGETED_DEVICE_FAMILY: "1,2,3,4"
SUPPORTED_PLATFORMS: "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator"
sources:
- path: Sources/FlareMock
FlareUIMock:
type: framework
supportedDestinations: [iOS, tvOS, macOS]
dependencies:
- target: FlareUI
- target: FlareMock
settings:
base:
GENERATE_INFOPLIST_FILE: YES
TARGETED_DEVICE_FAMILY: "1,2,3,4"
SUPPORTED_PLATFORMS: "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator"
sources:
- path: Sources/FlareUIMock
FlareTests:
type: bundle.unit-test
supportedDestinations: [iOS, tvOS, macOS]
dependencies:
- package: Concurrency
product: TestConcurrency
- target: Flare
- target: FlareMock
settings:
base:
GENERATE_INFOPLIST_FILE: YES
PRODUCT_BUNDLE_IDENTIFIER: com.spacecode.flare-unit-tests
SUPPORTED_PLATFORMS: "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator"
TARGETED_DEVICE_FAMILY: "1,2,3,4"
sources:
- Tests/FlareTests/UnitTests
FlareUITests:
type: bundle.unit-test
supportedDestinations: [iOS, tvOS, macOS]
dependencies:
- target: Flare
- target: FlareMock
- target: FlareUI
- target: FlareUIMock
settings:
base:
GENERATE_INFOPLIST_FILE: YES
PRODUCT_BUNDLE_IDENTIFIER: com.spacecode.flare-unit-tests
SUPPORTED_PLATFORMS: "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator"
TARGETED_DEVICE_FAMILY: "1,2,3,4"
sources:
- Tests/FlareUITests
FlareUISnapshotTests:
type: bundle.unit-test
supportedDestinations: [iOS, tvOS, macOS]
dependencies:
- target: Flare
- target: FlareMock
- target: FlareUIMock
- target: FlareUI
- package: SnapshotTesting
settings:
base:
GENERATE_INFOPLIST_FILE: YES
PRODUCT_BUNDLE_IDENTIFIER: com.spacecode.flare-snapshot-tests
SUPPORTED_PLATFORMS: "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator"
TARGETED_DEVICE_FAMILY: "1,2,3,4"
sources:
- Tests/SnapshotTests
IntegrationTests:
type: bundle.unit-test
supportedDestinations: [iOS, tvOS, macOS]
dependencies:
- package: Concurrency
product: TestConcurrency
- target: Flare
- target: UnitTestHostApp
settings:
base:
BUNDLE_LOADER: $(TEST_HOST)
GENERATE_INFOPLIST_FILE: YES
TEST_HOST: $(BUILT_PRODUCTS_DIR)/UnitTestHostApp.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/UnitTestHostApp
PRODUCT_BUNDLE_IDENTIFIER: com.spacecode.flare.storekit-unit-tests
sources:
- Tests/IntegrationTests