|
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 | + "BuildVersion", |
| 29 | + "Clean", |
| 30 | + "CleanWellKnownTemporaryFiles", |
| 31 | + "CollectCodeCoverage", |
| 32 | + "Default", |
| 33 | + "Docs", |
| 34 | + "DotnetCoreBuild", |
| 35 | + "DotnetCorePack", |
| 36 | + "DotnetCoreRestore", |
| 37 | + "DotnetCoreTest", |
| 38 | + "DotnetToolRestore", |
| 39 | + "GenerateCodeCoverageBadges", |
| 40 | + "GenerateCodeCoverageReport", |
| 41 | + "GenerateCodeCoverageReportCobertura", |
| 42 | + "GenerateCodeCoverageSummary", |
| 43 | + "GenerateDocFx", |
| 44 | + "GenerateReadme", |
| 45 | + "NpmInstall", |
| 46 | + "Pack", |
| 47 | + "Restore", |
| 48 | + "Test", |
| 49 | + "TestVscodeExtension" |
| 50 | + ] |
| 51 | + }, |
| 52 | + "Verbosity": { |
| 53 | + "type": "string", |
| 54 | + "description": "", |
| 55 | + "enum": [ |
| 56 | + "Verbose", |
| 57 | + "Normal", |
| 58 | + "Minimal", |
| 59 | + "Quiet" |
| 60 | + ] |
| 61 | + }, |
| 62 | + "NukeBuild": { |
8 | 63 | "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 | 64 | "Continue": { |
22 | 65 | "type": "boolean", |
23 | 66 | "description": "Indicates to continue a previously failed build attempt" |
24 | 67 | }, |
25 | | - "Coverage": { |
26 | | - "type": "string", |
27 | | - "description": "The directory where coverage artifacts are to be dropped" |
28 | | - }, |
29 | 68 | "Help": { |
30 | 69 | "type": "boolean", |
31 | 70 | "description": "Shows the help text for this build assembly" |
32 | 71 | }, |
33 | 72 | "Host": { |
34 | | - "type": "string", |
35 | 73 | "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 | | - ] |
| 74 | + "$ref": "#/definitions/Host" |
53 | 75 | }, |
54 | 76 | "NoLogo": { |
55 | 77 | "type": "boolean", |
|
74 | 96 | "type": "string", |
75 | 97 | "description": "Root directory during build execution" |
76 | 98 | }, |
77 | | - "Serve": { |
78 | | - "type": "boolean", |
79 | | - "description": "serve the docs" |
80 | | - }, |
81 | 99 | "Skip": { |
82 | 100 | "type": "array", |
83 | 101 | "description": "List of targets to be skipped. Empty list skips all dependencies", |
84 | 102 | "items": { |
85 | | - "type": "string", |
86 | | - "enum": [ |
87 | | - "Build", |
88 | | - "BuildVersion", |
89 | | - "Clean", |
90 | | - "CoreBuild", |
91 | | - "CoreDocs", |
92 | | - "CorePack", |
93 | | - "CoreRestore", |
94 | | - "CoreTest", |
95 | | - "Default", |
96 | | - "DotnetToolRestore", |
97 | | - "Generate_Code_Coverage_Badges", |
98 | | - "Generate_Code_Coverage_Report", |
99 | | - "Generate_Code_Coverage_Report_Cobertura", |
100 | | - "Generate_Code_Coverage_Summary", |
101 | | - "GenerateCodeCoverageBadges", |
102 | | - "GenerateCodeCoverageReport", |
103 | | - "GenerateCodeCoverageReportCobertura", |
104 | | - "GenerateCodeCoverageSummary", |
105 | | - "GenerateReadme", |
106 | | - "NpmInstall", |
107 | | - "Pack", |
108 | | - "Restore", |
109 | | - "Test", |
110 | | - "TestVscodeTestExtension", |
111 | | - "Trigger_Code_Coverage_Reports", |
112 | | - "TriggerCodeCoverageReports" |
113 | | - ] |
| 103 | + "$ref": "#/definitions/ExecutableTarget" |
114 | 104 | } |
115 | 105 | }, |
116 | | - "Solution": { |
117 | | - "type": "string", |
118 | | - "description": "Path to a solution file that is automatically loaded" |
119 | | - }, |
120 | 106 | "Target": { |
121 | 107 | "type": "array", |
122 | 108 | "description": "List of targets to be invoked. Default is '{default_target}'", |
123 | 109 | "items": { |
124 | | - "type": "string", |
125 | | - "enum": [ |
126 | | - "Build", |
127 | | - "BuildVersion", |
128 | | - "Clean", |
129 | | - "CoreBuild", |
130 | | - "CoreDocs", |
131 | | - "CorePack", |
132 | | - "CoreRestore", |
133 | | - "CoreTest", |
134 | | - "Default", |
135 | | - "DotnetToolRestore", |
136 | | - "Generate_Code_Coverage_Badges", |
137 | | - "Generate_Code_Coverage_Report", |
138 | | - "Generate_Code_Coverage_Report_Cobertura", |
139 | | - "Generate_Code_Coverage_Summary", |
140 | | - "GenerateCodeCoverageBadges", |
141 | | - "GenerateCodeCoverageReport", |
142 | | - "GenerateCodeCoverageReportCobertura", |
143 | | - "GenerateCodeCoverageSummary", |
144 | | - "GenerateReadme", |
145 | | - "NpmInstall", |
146 | | - "Pack", |
147 | | - "Restore", |
148 | | - "Test", |
149 | | - "TestVscodeTestExtension", |
150 | | - "Trigger_Code_Coverage_Reports", |
151 | | - "TriggerCodeCoverageReports" |
152 | | - ] |
| 110 | + "$ref": "#/definitions/ExecutableTarget" |
153 | 111 | } |
154 | 112 | }, |
155 | 113 | "Verbosity": { |
156 | | - "type": "string", |
157 | 114 | "description": "Logging verbosity during build execution. Default is 'Normal'", |
| 115 | + "$ref": "#/definitions/Verbosity" |
| 116 | + } |
| 117 | + } |
| 118 | + } |
| 119 | + }, |
| 120 | + "allOf": [ |
| 121 | + { |
| 122 | + "properties": { |
| 123 | + "Artifacts": { |
| 124 | + "type": "string", |
| 125 | + "description": "The directory where artifacts are to be dropped" |
| 126 | + }, |
| 127 | + "Configuration": { |
| 128 | + "type": "string", |
| 129 | + "description": "Configuration to build", |
158 | 130 | "enum": [ |
159 | | - "Minimal", |
160 | | - "Normal", |
161 | | - "Quiet", |
162 | | - "Verbose" |
| 131 | + "Debug", |
| 132 | + "Release" |
163 | 133 | ] |
| 134 | + }, |
| 135 | + "Coverage": { |
| 136 | + "type": "string", |
| 137 | + "description": "The directory where coverage artifacts are to be dropped" |
| 138 | + }, |
| 139 | + "Serve": { |
| 140 | + "type": [ |
| 141 | + "boolean", |
| 142 | + "null" |
| 143 | + ], |
| 144 | + "description": "serve the docs" |
| 145 | + }, |
| 146 | + "Solution": { |
| 147 | + "type": "string", |
| 148 | + "description": "Path to a solution file that is automatically loaded" |
164 | 149 | } |
165 | 150 | } |
| 151 | + }, |
| 152 | + { |
| 153 | + "$ref": "#/definitions/NukeBuild" |
166 | 154 | } |
167 | | - } |
| 155 | + ] |
168 | 156 | } |
0 commit comments