-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathproject.yml
130 lines (124 loc) · 3.97 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
name: Mocka
settings:
DEBUG_INFORMATION_FORMAT: dwarf-with-dsym
TARGETED_DEVICE_FAMILY: 3
# https://forums.swift.org/t/swift-packages-in-multiple-targets-results-in-this-will-result-in-duplication-of-library-code-errors/34892/36
DISABLE_DIAMOND_PROBLEM_DIAGNOSTIC: true
# https://github.com/wise-emotions/mocka/issues/108
SWIFT_OPTIMIZATION_LEVEL: -Onone
options:
minimumXcodeGenVersion: "2.11.0"
bundleIdPrefix: com.wisemotions
developmentLanguage: en
indentWidth: 2
xcodeVersion: 12.5
deploymentTarget:
macOS: "11.0"
generateEmptyDirectories: true
packages:
Vapor:
url: https://github.com/vapor/vapor
from: 4.0.0
Introspect:
url: https://github.com/siteline/SwiftUI-Introspect
from: 0.1.3
targets:
MockaApp:
type: application
platform: macOS
attributes:
ProvisioningStyle: Automatic
settings:
PRODUCT_NAME: "Mocka"
PRODUCT_MODULE_NAME: "MockaApp"
CODE_SIGN_ENTITLEMENTS: Sources/App/Resources/MockaApp.entitlements
ENABLE_HARDENED_RUNTIME: true
sources:
- path: Sources/App
dependencies:
- target: MockaServer
- package: Introspect
scheme:
testTargets:
- MockaAppTests
gatherCoverageData: true
randomExecutionOrder: true
customArchiveName: Mocka
revealArchiveInOrganizer: false
info:
path: Sources/App/Resources/Info.plist
properties:
CFBundleDevelopmentRegion: "$(DEVELOPMENT_LANGUAGE)"
CFBundleExecutable: $(EXECUTABLE_NAME)
CFBundleIdentifier: $(PRODUCT_BUNDLE_IDENTIFIER)
CFBundleInfoDictionaryVersion: "6.0"
CFBundleName: $(PRODUCT_NAME)
CFBundlePackageType: $(PRODUCT_BUNDLE_PACKAGE_TYPE)
CFBundleShortVersionString: "0.1.0"
CFBundleVersion: "1"
LSMinimumSystemVersion: "$(MACOSX_DEPLOYMENT_TARGET)"
MockaAppTests:
type: bundle.unit-test
platform: macOS
settings:
TEST_HOST: "$(BUILT_PRODUCTS_DIR)/Mocka.app/Contents/MacOS/Mocka"
sources:
- path: Tests/AppTests
dependencies:
- target: MockaApp
info:
path: Tests/AppTests/Resources/Info.plist
properties:
CFBundleDevelopmentRegion: "$(DEVELOPMENT_LANGUAGE)"
CFBundleExecutable: $(EXECUTABLE_NAME)
CFBundleIdentifier: $(PRODUCT_BUNDLE_IDENTIFIER)
CFBundleInfoDictionaryVersion: "6.0"
CFBundleName: $(PRODUCT_NAME)
CFBundlePackageType: $(PRODUCT_BUNDLE_PACKAGE_TYPE)
CFBundleShortVersionString: "0.1.0"
CFBundleVersion: "$(CURRENT_PROJECT_VERSION)"
MockaServer:
type: framework
platform: macOS
sources:
- path: Sources/Server
dependencies:
- package: Vapor
scheme:
testTargets:
- MockaServerTests
gatherCoverageData: true
randomExecutionOrder: true
customArchiveName: Server
revealArchiveInOrganizer: false
info:
path: Sources/Server/Resources/Info.plist
properties:
CFBundleDevelopmentRegion: "$(DEVELOPMENT_LANGUAGE)"
CFBundleExecutable: $(EXECUTABLE_NAME)
CFBundleIdentifier: $(PRODUCT_BUNDLE_IDENTIFIER)
CFBundleInfoDictionaryVersion: "6.0"
CFBundleName: $(PRODUCT_NAME)
CFBundlePackageType: $(PRODUCT_BUNDLE_PACKAGE_TYPE)
CFBundleShortVersionString: "0.1.0"
CFBundleVersion: "1"
MockaServerTests:
type: bundle.unit-test
platform: macOS
sources:
- path: Tests/ServerTests
dependencies:
- target: MockaServer
- package: Vapor
product: XCTVapor
info:
path: Tests/ServerTests/Resources/Info.plist
properties:
CFBundleDevelopmentRegion: "$(DEVELOPMENT_LANGUAGE)"
CFBundleExecutable: $(EXECUTABLE_NAME)
CFBundleIdentifier: $(PRODUCT_BUNDLE_IDENTIFIER)
CFBundleInfoDictionaryVersion: "6.0"
CFBundleName: $(PRODUCT_NAME)
CFBundlePackageType: $(PRODUCT_BUNDLE_PACKAGE_TYPE)
CFBundleShortVersionString: "0.1.0"
CFBundleVersion: "$(CURRENT_PROJECT_VERSION)"