|
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 | + "Antlr", |
| 28 | + "Ci", |
| 29 | + "Clean", |
| 30 | + "Compile", |
| 31 | + "CompileExamples", |
| 32 | + "CompileSolution", |
| 33 | + "Docs", |
| 34 | + "DocsReference", |
| 35 | + "DocsSdk", |
| 36 | + "Pack", |
| 37 | + "PackBinaries", |
| 38 | + "Publish", |
| 39 | + "Restore", |
| 40 | + "Test", |
| 41 | + "Website" |
| 42 | + ] |
| 43 | + }, |
| 44 | + "Verbosity": { |
| 45 | + "type": "string", |
| 46 | + "description": "", |
| 47 | + "enum": [ |
| 48 | + "Verbose", |
| 49 | + "Normal", |
| 50 | + "Minimal", |
| 51 | + "Quiet" |
| 52 | + ] |
| 53 | + }, |
| 54 | + "NukeBuild": { |
8 | 55 | "properties": { |
9 | | - "BuildEms": { |
10 | | - "type": "boolean", |
11 | | - "description": "Build EMS" |
12 | | - }, |
13 | | - "Configuration": { |
14 | | - "type": "string", |
15 | | - "description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)", |
16 | | - "enum": [ |
17 | | - "Debug", |
18 | | - "Release" |
19 | | - ] |
20 | | - }, |
21 | 56 | "Continue": { |
22 | 57 | "type": "boolean", |
23 | 58 | "description": "Indicates to continue a previously failed build attempt" |
|
27 | 62 | "description": "Shows the help text for this build assembly" |
28 | 63 | }, |
29 | 64 | "Host": { |
30 | | - "type": "string", |
31 | 65 | "description": "Host for execution. Default is 'automatic'", |
32 | | - "enum": [ |
33 | | - "AppVeyor", |
34 | | - "AzurePipelines", |
35 | | - "Bamboo", |
36 | | - "Bitbucket", |
37 | | - "Bitrise", |
38 | | - "GitHubActions", |
39 | | - "GitLab", |
40 | | - "Jenkins", |
41 | | - "Rider", |
42 | | - "SpaceAutomation", |
43 | | - "TeamCity", |
44 | | - "Terminal", |
45 | | - "TravisCI", |
46 | | - "VisualStudio", |
47 | | - "VSCode" |
48 | | - ] |
| 66 | + "$ref": "#/definitions/Host" |
49 | 67 | }, |
50 | 68 | "NoLogo": { |
51 | 69 | "type": "boolean", |
52 | 70 | "description": "Disables displaying the NUKE logo" |
53 | 71 | }, |
54 | | - "NuGetApiKey": { |
55 | | - "type": "string", |
56 | | - "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
57 | | - }, |
58 | | - "NuGetSource": { |
59 | | - "type": "string" |
60 | | - }, |
61 | 72 | "Partition": { |
62 | 73 | "type": "string", |
63 | 74 | "description": "Partition to use on CI" |
|
73 | 84 | "type": "string" |
74 | 85 | } |
75 | 86 | }, |
76 | | - "ProjectVersion": { |
77 | | - "type": "string", |
78 | | - "description": "Version" |
79 | | - }, |
80 | 87 | "Root": { |
81 | 88 | "type": "string", |
82 | 89 | "description": "Root directory during build execution" |
|
85 | 92 | "type": "array", |
86 | 93 | "description": "List of targets to be skipped. Empty list skips all dependencies", |
87 | 94 | "items": { |
88 | | - "type": "string", |
89 | | - "enum": [ |
90 | | - "Antlr", |
91 | | - "Ci", |
92 | | - "Clean", |
93 | | - "Compile", |
94 | | - "CompileExamples", |
95 | | - "CompileSolution", |
96 | | - "Docs", |
97 | | - "DocsReference", |
98 | | - "DocsSdk", |
99 | | - "Pack", |
100 | | - "PackBinaries", |
101 | | - "Publish", |
102 | | - "Restore", |
103 | | - "Test", |
104 | | - "Website" |
105 | | - ] |
| 95 | + "$ref": "#/definitions/ExecutableTarget" |
106 | 96 | } |
107 | 97 | }, |
108 | | - "Solution": { |
109 | | - "type": "string", |
110 | | - "description": "Path to a solution file that is automatically loaded" |
111 | | - }, |
112 | 98 | "Target": { |
113 | 99 | "type": "array", |
114 | 100 | "description": "List of targets to be invoked. Default is '{default_target}'", |
115 | 101 | "items": { |
116 | | - "type": "string", |
117 | | - "enum": [ |
118 | | - "Antlr", |
119 | | - "Ci", |
120 | | - "Clean", |
121 | | - "Compile", |
122 | | - "CompileExamples", |
123 | | - "CompileSolution", |
124 | | - "Docs", |
125 | | - "DocsReference", |
126 | | - "DocsSdk", |
127 | | - "Pack", |
128 | | - "PackBinaries", |
129 | | - "Publish", |
130 | | - "Restore", |
131 | | - "Test", |
132 | | - "Website" |
133 | | - ] |
| 102 | + "$ref": "#/definitions/ExecutableTarget" |
134 | 103 | } |
135 | 104 | }, |
| 105 | + "Verbosity": { |
| 106 | + "description": "Logging verbosity during build execution. Default is 'Normal'", |
| 107 | + "$ref": "#/definitions/Verbosity" |
| 108 | + } |
| 109 | + } |
| 110 | + } |
| 111 | + }, |
| 112 | + "allOf": [ |
| 113 | + { |
| 114 | + "properties": { |
| 115 | + "BuildEms": { |
| 116 | + "type": "boolean", |
| 117 | + "description": "Build EMS" |
| 118 | + }, |
| 119 | + "Configuration": { |
| 120 | + "type": "string", |
| 121 | + "description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)", |
| 122 | + "enum": [ |
| 123 | + "Debug", |
| 124 | + "Release" |
| 125 | + ] |
| 126 | + }, |
| 127 | + "NuGetApiKey": { |
| 128 | + "type": "string", |
| 129 | + "default": "Secrets must be entered via 'nuke :secrets [profile]'" |
| 130 | + }, |
| 131 | + "NuGetSource": { |
| 132 | + "type": "string" |
| 133 | + }, |
| 134 | + "ProjectVersion": { |
| 135 | + "type": "string", |
| 136 | + "description": "Version" |
| 137 | + }, |
| 138 | + "Solution": { |
| 139 | + "type": "string", |
| 140 | + "description": "Path to a solution file that is automatically loaded" |
| 141 | + }, |
136 | 142 | "TestFull": { |
137 | 143 | "type": "boolean" |
138 | 144 | }, |
|
147 | 153 | }, |
148 | 154 | "TestIntegrationNms": { |
149 | 155 | "type": "boolean" |
150 | | - }, |
151 | | - "Verbosity": { |
152 | | - "type": "string", |
153 | | - "description": "Logging verbosity during build execution. Default is 'Normal'", |
154 | | - "enum": [ |
155 | | - "Minimal", |
156 | | - "Normal", |
157 | | - "Quiet", |
158 | | - "Verbose" |
159 | | - ] |
160 | 156 | } |
161 | 157 | } |
| 158 | + }, |
| 159 | + { |
| 160 | + "$ref": "#/definitions/NukeBuild" |
162 | 161 | } |
163 | | - } |
| 162 | + ] |
164 | 163 | } |
0 commit comments