-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWorkspace.swift
38 lines (32 loc) · 1.33 KB
/
Workspace.swift
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
import ProjectDescription
import ProjectDescriptionHelpers
let essentialAppTarget = TargetReference.project(
path: "EssentialApp",
target: "EssentialApp"
)
let ciiOSScheme: Scheme = .scheme(
name: "CI_iOS",
buildAction: .buildAction(targets: [essentialAppTarget]),
testAction: .testPlans([.path("Testplans/CI_iOS.xctestplan")]),
runAction: .runAction(configuration: .essentialAppDebug, executable: essentialAppTarget),
archiveAction: .archiveAction(configuration: .essentialAppRelease),
analyzeAction: .analyzeAction(configuration: .essentialAppRelease)
)
let essentialFeedTarget = TargetReference.project(
path: "EssentialFeed",
target: "EssentialFeed"
)
let cimacOSScheme: Scheme = .scheme(
name: "CI_macOS",
buildAction: .buildAction(targets: [essentialFeedTarget]),
testAction: .testPlans([.path("Testplans/CI_macOS.xctestplan")]),
runAction: .runAction(configuration: .essentialFeedDebug, executable: essentialFeedTarget),
archiveAction: .archiveAction(configuration: .essentialFeedRelease),
analyzeAction: .analyzeAction(configuration: .essentialFeedRelease)
)
let workspace = Workspace(
name: "EssentialApp",
projects: ["EssentialFeed", "EssentialApp"],
schemes: [ciiOSScheme, cimacOSScheme],
generationOptions: .options(autogeneratedWorkspaceSchemes: .disabled)
)