-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
626 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 85 additions & 0 deletions
85
source/Nuke.Build.Tests/SchemaUtilityTest.TestEmptyBuild.verified.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"definitions": { | ||
"Host": { | ||
"type": "string", | ||
"enum": [ | ||
"Rider", | ||
"Terminal", | ||
"VisualStudio", | ||
"VSCode" | ||
] | ||
}, | ||
"ExecutableTarget": { | ||
"type": "string" | ||
}, | ||
"Verbosity": { | ||
"type": "string", | ||
"description": "", | ||
"enum": [ | ||
"Verbose", | ||
"Normal", | ||
"Minimal", | ||
"Quiet" | ||
] | ||
}, | ||
"NukeBuild": { | ||
"properties": { | ||
"Continue": { | ||
"type": "boolean", | ||
"description": "Indicates to continue a previously failed build attempt" | ||
}, | ||
"Help": { | ||
"type": "boolean", | ||
"description": "Shows the help text for this build assembly" | ||
}, | ||
"Host": { | ||
"description": "Host for execution. Default is 'automatic'", | ||
"$ref": "#/definitions/Host" | ||
}, | ||
"NoLogo": { | ||
"type": "boolean", | ||
"description": "Disables displaying the NUKE logo" | ||
}, | ||
"Partition": { | ||
"type": "string", | ||
"description": "Partition to use on CI" | ||
}, | ||
"Plan": { | ||
"type": "boolean", | ||
"description": "Shows the execution plan (HTML)" | ||
}, | ||
"Profile": { | ||
"type": "array", | ||
"description": "Defines the profiles to load", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"Root": { | ||
"type": "string", | ||
"description": "Root directory during build execution" | ||
}, | ||
"Skip": { | ||
"type": "array", | ||
"description": "List of targets to be skipped. Empty list skips all dependencies", | ||
"items": { | ||
"$ref": "#/definitions/ExecutableTarget" | ||
} | ||
}, | ||
"Target": { | ||
"type": "array", | ||
"description": "List of targets to be invoked. Default is '{default_target}'", | ||
"items": { | ||
"$ref": "#/definitions/ExecutableTarget" | ||
} | ||
}, | ||
"Verbosity": { | ||
"description": "Logging verbosity during build execution. Default is 'Normal'", | ||
"$ref": "#/definitions/Verbosity" | ||
} | ||
} | ||
} | ||
}, | ||
"$ref": "#/definitions/NukeBuild" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
190 changes: 190 additions & 0 deletions
190
source/Nuke.Build.Tests/SchemaUtilityTest.TestParameterBuild.verified.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,190 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"properties": { | ||
"BooleanParam": { | ||
"type": "boolean" | ||
}, | ||
"ComplexTypeArrayParam": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ComplexType" | ||
} | ||
}, | ||
"ComplexTypeParam": { | ||
"$ref": "#/definitions/ComplexType" | ||
}, | ||
"ComponentInheritedParam": { | ||
"type": "string" | ||
}, | ||
"CustomEnumerationArrayParam": { | ||
"type": "array", | ||
"items": { | ||
"type": "string", | ||
"enum": [ | ||
"Debug", | ||
"Release" | ||
] | ||
} | ||
}, | ||
"CustomEnumerationParam": { | ||
"type": "string", | ||
"enum": [ | ||
"Debug", | ||
"Release" | ||
] | ||
}, | ||
"IntegerArrayParam": { | ||
"type": "array", | ||
"items": { | ||
"type": "integer", | ||
"format": "int32" | ||
} | ||
}, | ||
"NullableBooleanParam": { | ||
"type": [ | ||
"boolean", | ||
"null" | ||
] | ||
}, | ||
"RegularParam": { | ||
"type": "string" | ||
}, | ||
"SecretParam": { | ||
"type": "string", | ||
"default": "Secrets must be entered via 'nuke :secrets [profile]'" | ||
}, | ||
"StringArrayParam": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"ComplexType": { | ||
"type": "object", | ||
"properties": { | ||
"String": { | ||
"type": [ | ||
"null", | ||
"string" | ||
] | ||
}, | ||
"Number": { | ||
"type": "integer", | ||
"format": "int32" | ||
}, | ||
"Paths": { | ||
"type": [ | ||
"array", | ||
"null" | ||
], | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"SubObject": { | ||
"oneOf": [ | ||
{ | ||
"type": "null" | ||
}, | ||
{ | ||
"$ref": "#/definitions/ComplexSubType" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"ComplexSubType": { | ||
"type": "object", | ||
"properties": { | ||
"Boolean": { | ||
"type": [ | ||
"boolean", | ||
"null" | ||
] | ||
} | ||
} | ||
}, | ||
"Host": { | ||
"type": "string", | ||
"enum": [ | ||
"Rider", | ||
"Terminal", | ||
"VisualStudio", | ||
"VSCode" | ||
] | ||
}, | ||
"ExecutableTarget": { | ||
"type": "string" | ||
}, | ||
"Verbosity": { | ||
"type": "string", | ||
"description": "", | ||
"enum": [ | ||
"Verbose", | ||
"Normal", | ||
"Minimal", | ||
"Quiet" | ||
] | ||
}, | ||
"NukeBuild": { | ||
"properties": { | ||
"Continue": { | ||
"type": "boolean", | ||
"description": "Indicates to continue a previously failed build attempt" | ||
}, | ||
"Help": { | ||
"type": "boolean", | ||
"description": "Shows the help text for this build assembly" | ||
}, | ||
"Host": { | ||
"description": "Host for execution. Default is 'automatic'", | ||
"$ref": "#/definitions/Host" | ||
}, | ||
"NoLogo": { | ||
"type": "boolean", | ||
"description": "Disables displaying the NUKE logo" | ||
}, | ||
"Partition": { | ||
"type": "string", | ||
"description": "Partition to use on CI" | ||
}, | ||
"Plan": { | ||
"type": "boolean", | ||
"description": "Shows the execution plan (HTML)" | ||
}, | ||
"Profile": { | ||
"type": "array", | ||
"description": "Defines the profiles to load", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"Root": { | ||
"type": "string", | ||
"description": "Root directory during build execution" | ||
}, | ||
"Skip": { | ||
"type": "array", | ||
"description": "List of targets to be skipped. Empty list skips all dependencies", | ||
"items": { | ||
"$ref": "#/definitions/ExecutableTarget" | ||
} | ||
}, | ||
"Target": { | ||
"type": "array", | ||
"description": "List of targets to be invoked. Default is '{default_target}'", | ||
"items": { | ||
"$ref": "#/definitions/ExecutableTarget" | ||
} | ||
}, | ||
"Verbosity": { | ||
"description": "Logging verbosity during build execution. Default is 'Normal'", | ||
"$ref": "#/definitions/Verbosity" | ||
} | ||
} | ||
} | ||
}, | ||
"$ref": "#/definitions/NukeBuild" | ||
} |
Oops, something went wrong.