Add option to build tests or not in mac crafter

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-06-23 17:45:52 +08:00 committed by Claudio Cambra
parent 9025be29a4
commit 942cc09e16

View file

@ -76,6 +76,9 @@ struct MacCrafter: ParsableCommand {
@Option(name: [.long], help: "Run a full rebuild.") @Option(name: [.long], help: "Run a full rebuild.")
var fullRebuild = false var fullRebuild = false
@Option(name: [.long], help: "Build test suite.")
var buildTests = true
mutating func run() throws { mutating func run() throws {
print("Configuring build tooling.") print("Configuring build tooling.")
@ -134,6 +137,7 @@ struct MacCrafter: ParsableCommand {
var craftOptions = [ var craftOptions = [
"\(craftBlueprintName).srcDir=\(repoRootDir)", "\(craftBlueprintName).srcDir=\(repoRootDir)",
"\(craftBlueprintName).buildTests=\(buildTests ? "True" : "False")",
"\(craftBlueprintName).buildMacOSBundle=\(buildAppBundle ? "True" : "False")", "\(craftBlueprintName).buildMacOSBundle=\(buildAppBundle ? "True" : "False")",
"\(craftBlueprintName).buildFileProviderModule=\(buildFileProviderModule ? "True" : "False")" "\(craftBlueprintName).buildFileProviderModule=\(buildFileProviderModule ? "True" : "False")"
] ]