|
1 | 1 | { |
2 | 2 | "$schema": "http://json-schema.org/draft-04/schema#", |
3 | | - "$ref": "#/definitions/build", |
4 | | - "title": "Build Schema", |
5 | 3 | "definitions": { |
6 | | - "build": { |
7 | | - "type": "object", |
| 4 | + "Host": { |
| 5 | + "type": "string", |
| 6 | + "enum": [ |
| 7 | + "AppVeyor", |
| 8 | + "AzurePipelines", |
| 9 | + "Bamboo", |
| 10 | + "Bitbucket", |
| 11 | + "Bitrise", |
| 12 | + "GitHubActions", |
| 13 | + "GitLab", |
| 14 | + "Jenkins", |
| 15 | + "Rider", |
| 16 | + "SpaceAutomation", |
| 17 | + "TeamCity", |
| 18 | + "Terminal", |
| 19 | + "TravisCI", |
| 20 | + "VisualStudio", |
| 21 | + "VSCode" |
| 22 | + ] |
| 23 | + }, |
| 24 | + "ExecutableTarget": { |
| 25 | + "type": "string", |
| 26 | + "enum": [ |
| 27 | + "Build", |
| 28 | + "Clean", |
| 29 | + "CoreBuild", |
| 30 | + "CorePack", |
| 31 | + "CoreRestore", |
| 32 | + "CoreTest", |
| 33 | + "Default", |
| 34 | + "DotNetFormat", |
| 35 | + "DotnetToolRestore", |
| 36 | + "GenerateCodeCoverageBadges", |
| 37 | + "GenerateCodeCoverageReport", |
| 38 | + "GenerateCodeCoverageReportCobertura", |
| 39 | + "GenerateCodeCoverageSummary", |
| 40 | + "GenerateReadme", |
| 41 | + "GitHubActions", |
| 42 | + "JetBrainsCleanupCode", |
| 43 | + "Lint", |
| 44 | + "LintGitAdd", |
| 45 | + "LintPublicApiAnalyzers", |
| 46 | + "LintStaged", |
| 47 | + "MoveUnshippedToShipped", |
| 48 | + "Pack", |
| 49 | + "PostLint", |
| 50 | + "RegenerateBuildConfigurations", |
| 51 | + "Restore", |
| 52 | + "ShipPublicApis", |
| 53 | + "Test", |
| 54 | + "TriggerCodeCoverageReports", |
| 55 | + "Workloads" |
| 56 | + ] |
| 57 | + }, |
| 58 | + "Verbosity": { |
| 59 | + "type": "string", |
| 60 | + "description": "", |
| 61 | + "enum": [ |
| 62 | + "Verbose", |
| 63 | + "Normal", |
| 64 | + "Minimal", |
| 65 | + "Quiet" |
| 66 | + ] |
| 67 | + }, |
| 68 | + "NukeBuild": { |
8 | 69 | "properties": { |
9 | | - "Artifacts": { |
10 | | - "type": "string", |
11 | | - "description": "The directory where artifacts are to be dropped" |
12 | | - }, |
13 | | - "Configuration": { |
14 | | - "type": "string", |
15 | | - "description": "Configuration to build", |
16 | | - "enum": [ |
17 | | - "Debug", |
18 | | - "Release" |
19 | | - ] |
20 | | - }, |
21 | 70 | "Continue": { |
22 | 71 | "type": "boolean", |
23 | 72 | "description": "Indicates to continue a previously failed build attempt" |
24 | 73 | }, |
25 | | - "Coverage": { |
26 | | - "type": "string", |
27 | | - "description": "The directory where coverage artifacts are to be dropped" |
28 | | - }, |
29 | 74 | "Help": { |
30 | 75 | "type": "boolean", |
31 | 76 | "description": "Shows the help text for this build assembly" |
32 | 77 | }, |
33 | 78 | "Host": { |
34 | | - "type": "string", |
35 | 79 | "description": "Host for execution. Default is 'automatic'", |
36 | | - "enum": [ |
37 | | - "AppVeyor", |
38 | | - "AzurePipelines", |
39 | | - "Bamboo", |
40 | | - "Bitbucket", |
41 | | - "Bitrise", |
42 | | - "GitHubActions", |
43 | | - "GitLab", |
44 | | - "Jenkins", |
45 | | - "Rider", |
46 | | - "SpaceAutomation", |
47 | | - "TeamCity", |
48 | | - "Terminal", |
49 | | - "TravisCI", |
50 | | - "VisualStudio", |
51 | | - "VSCode" |
52 | | - ] |
53 | | - }, |
54 | | - "lint-files": { |
55 | | - "type": "array", |
56 | | - "description": "The files to lint, if not given lints all files", |
57 | | - "items": { |
58 | | - "type": "string" |
59 | | - } |
| 80 | + "$ref": "#/definitions/Host" |
60 | 81 | }, |
61 | 82 | "NoLogo": { |
62 | 83 | "type": "boolean", |
|
85 | 106 | "type": "array", |
86 | 107 | "description": "List of targets to be skipped. Empty list skips all dependencies", |
87 | 108 | "items": { |
88 | | - "type": "string", |
89 | | - "enum": [ |
90 | | - "Build", |
91 | | - "Clean", |
92 | | - "CoreBuild", |
93 | | - "CorePack", |
94 | | - "CoreRestore", |
95 | | - "CoreTest", |
96 | | - "Default", |
97 | | - "DotNetFormat", |
98 | | - "DotnetToolRestore", |
99 | | - "GenerateCodeCoverageBadges", |
100 | | - "GenerateCodeCoverageReport", |
101 | | - "GenerateCodeCoverageReportCobertura", |
102 | | - "GenerateCodeCoverageSummary", |
103 | | - "GenerateReadme", |
104 | | - "GitHubActions", |
105 | | - "JetBrainsCleanupCode", |
106 | | - "Lint", |
107 | | - "LintGitAdd", |
108 | | - "LintPublicApiAnalyzers", |
109 | | - "LintStaged", |
110 | | - "MoveUnshippedToShipped", |
111 | | - "Pack", |
112 | | - "PostLint", |
113 | | - "RegenerateBuildConfigurations", |
114 | | - "Restore", |
115 | | - "ShipPublicApis", |
116 | | - "Test", |
117 | | - "TriggerCodeCoverageReports", |
118 | | - "Workloads" |
119 | | - ] |
| 109 | + "$ref": "#/definitions/ExecutableTarget" |
120 | 110 | } |
121 | 111 | }, |
122 | | - "Solution": { |
123 | | - "type": "string", |
124 | | - "description": "Path to a solution file that is automatically loaded" |
125 | | - }, |
126 | 112 | "Target": { |
127 | 113 | "type": "array", |
128 | 114 | "description": "List of targets to be invoked. Default is '{default_target}'", |
129 | 115 | "items": { |
130 | | - "type": "string", |
131 | | - "enum": [ |
132 | | - "Build", |
133 | | - "Clean", |
134 | | - "CoreBuild", |
135 | | - "CorePack", |
136 | | - "CoreRestore", |
137 | | - "CoreTest", |
138 | | - "Default", |
139 | | - "DotNetFormat", |
140 | | - "DotnetToolRestore", |
141 | | - "GenerateCodeCoverageBadges", |
142 | | - "GenerateCodeCoverageReport", |
143 | | - "GenerateCodeCoverageReportCobertura", |
144 | | - "GenerateCodeCoverageSummary", |
145 | | - "GenerateReadme", |
146 | | - "GitHubActions", |
147 | | - "JetBrainsCleanupCode", |
148 | | - "Lint", |
149 | | - "LintGitAdd", |
150 | | - "LintPublicApiAnalyzers", |
151 | | - "LintStaged", |
152 | | - "MoveUnshippedToShipped", |
153 | | - "Pack", |
154 | | - "PostLint", |
155 | | - "RegenerateBuildConfigurations", |
156 | | - "Restore", |
157 | | - "ShipPublicApis", |
158 | | - "Test", |
159 | | - "TriggerCodeCoverageReports", |
160 | | - "Workloads" |
161 | | - ] |
| 116 | + "$ref": "#/definitions/ExecutableTarget" |
162 | 117 | } |
163 | 118 | }, |
164 | 119 | "Verbosity": { |
165 | | - "type": "string", |
166 | 120 | "description": "Logging verbosity during build execution. Default is 'Normal'", |
| 121 | + "$ref": "#/definitions/Verbosity" |
| 122 | + } |
| 123 | + } |
| 124 | + } |
| 125 | + }, |
| 126 | + "allOf": [ |
| 127 | + { |
| 128 | + "properties": { |
| 129 | + "Artifacts": { |
| 130 | + "type": "string", |
| 131 | + "description": "The directory where artifacts are to be dropped" |
| 132 | + }, |
| 133 | + "Configuration": { |
| 134 | + "type": "string", |
| 135 | + "description": "Configuration to build", |
167 | 136 | "enum": [ |
168 | | - "Minimal", |
169 | | - "Normal", |
170 | | - "Quiet", |
171 | | - "Verbose" |
| 137 | + "Debug", |
| 138 | + "Release" |
172 | 139 | ] |
| 140 | + }, |
| 141 | + "Coverage": { |
| 142 | + "type": "string", |
| 143 | + "description": "The directory where coverage artifacts are to be dropped" |
| 144 | + }, |
| 145 | + "lint-files": { |
| 146 | + "type": "array", |
| 147 | + "description": "The files to lint, if not given lints all files", |
| 148 | + "items": { |
| 149 | + "type": "string" |
| 150 | + } |
| 151 | + }, |
| 152 | + "Solution": { |
| 153 | + "type": "string", |
| 154 | + "description": "Path to a solution file that is automatically loaded" |
173 | 155 | } |
174 | 156 | } |
| 157 | + }, |
| 158 | + { |
| 159 | + "$ref": "#/definitions/NukeBuild" |
175 | 160 | } |
176 | | - } |
| 161 | + ] |
177 | 162 | } |
0 commit comments