|
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 | + "ChangelogVersionMatchesGitTagVersion", |
| 28 | + "CheckForUnityMetaFiles", |
| 29 | + "Clean", |
| 30 | + "Compile", |
| 31 | + "Publish", |
| 32 | + "PublishGitHubRelease", |
| 33 | + "Restore", |
| 34 | + "Test", |
| 35 | + "UnityPackageVersionMatchesGitTagVersion" |
| 36 | + ] |
| 37 | + }, |
| 38 | + "Verbosity": { |
| 39 | + "type": "string", |
| 40 | + "description": "", |
| 41 | + "enum": [ |
| 42 | + "Verbose", |
| 43 | + "Normal", |
| 44 | + "Minimal", |
| 45 | + "Quiet" |
| 46 | + ] |
| 47 | + }, |
| 48 | + "NukeBuild": { |
8 | 49 | "properties": { |
9 | | - "ChangelogVersionMatchesGitTagVersionChangelogFile": { |
10 | | - "type": "string" |
11 | | - }, |
12 | | - "CheckForUnityMetaFilesExcludeDirectories": { |
13 | | - "type": "array", |
14 | | - "items": { |
15 | | - "type": "string" |
16 | | - } |
17 | | - }, |
18 | | - "CheckForUnityMetaFilesIncludeDirectories": { |
19 | | - "type": "array", |
20 | | - "items": { |
21 | | - "type": "string" |
22 | | - } |
23 | | - }, |
24 | | - "Configuration": { |
25 | | - "type": "string", |
26 | | - "description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)", |
27 | | - "enum": [ |
28 | | - "Debug", |
29 | | - "Release" |
30 | | - ] |
31 | | - }, |
32 | 50 | "Continue": { |
33 | 51 | "type": "boolean", |
34 | 52 | "description": "Indicates to continue a previously failed build attempt" |
|
38 | 56 | "description": "Shows the help text for this build assembly" |
39 | 57 | }, |
40 | 58 | "Host": { |
41 | | - "type": "string", |
42 | 59 | "description": "Host for execution. Default is 'automatic'", |
43 | | - "enum": [ |
44 | | - "AppVeyor", |
45 | | - "AzurePipelines", |
46 | | - "Bamboo", |
47 | | - "Bitbucket", |
48 | | - "Bitrise", |
49 | | - "GitHubActions", |
50 | | - "GitLab", |
51 | | - "Jenkins", |
52 | | - "Rider", |
53 | | - "SpaceAutomation", |
54 | | - "TeamCity", |
55 | | - "Terminal", |
56 | | - "TravisCI", |
57 | | - "VisualStudio", |
58 | | - "VSCode" |
59 | | - ] |
| 60 | + "$ref": "#/definitions/Host" |
60 | 61 | }, |
61 | 62 | "NoLogo": { |
62 | 63 | "type": "boolean", |
|
77 | 78 | "type": "string" |
78 | 79 | } |
79 | 80 | }, |
80 | | - "PublishGitHubReleaseChangelogFile": { |
81 | | - "type": "string" |
82 | | - }, |
83 | 81 | "Root": { |
84 | 82 | "type": "string", |
85 | 83 | "description": "Root directory during build execution" |
|
88 | 86 | "type": "array", |
89 | 87 | "description": "List of targets to be skipped. Empty list skips all dependencies", |
90 | 88 | "items": { |
91 | | - "type": "string", |
92 | | - "enum": [ |
93 | | - "ChangelogVersionMatchesGitTagVersion", |
94 | | - "CheckForUnityMetaFiles", |
95 | | - "Clean", |
96 | | - "Compile", |
97 | | - "Publish", |
98 | | - "PublishGitHubRelease", |
99 | | - "Restore", |
100 | | - "Test", |
101 | | - "UnityPackageVersionMatchesGitTagVersion" |
102 | | - ] |
| 89 | + "$ref": "#/definitions/ExecutableTarget" |
103 | 90 | } |
104 | 91 | }, |
105 | 92 | "Target": { |
106 | 93 | "type": "array", |
107 | 94 | "description": "List of targets to be invoked. Default is '{default_target}'", |
108 | 95 | "items": { |
109 | | - "type": "string", |
110 | | - "enum": [ |
111 | | - "ChangelogVersionMatchesGitTagVersion", |
112 | | - "CheckForUnityMetaFiles", |
113 | | - "Clean", |
114 | | - "Compile", |
115 | | - "Publish", |
116 | | - "PublishGitHubRelease", |
117 | | - "Restore", |
118 | | - "Test", |
119 | | - "UnityPackageVersionMatchesGitTagVersion" |
120 | | - ] |
| 96 | + "$ref": "#/definitions/ExecutableTarget" |
121 | 97 | } |
122 | 98 | }, |
| 99 | + "Verbosity": { |
| 100 | + "description": "Logging verbosity during build execution. Default is 'Normal'", |
| 101 | + "$ref": "#/definitions/Verbosity" |
| 102 | + } |
| 103 | + } |
| 104 | + } |
| 105 | + }, |
| 106 | + "allOf": [ |
| 107 | + { |
| 108 | + "properties": { |
| 109 | + "ChangelogVersionMatchesGitTagVersionChangelogFile": { |
| 110 | + "type": "string" |
| 111 | + }, |
| 112 | + "Configuration": { |
| 113 | + "type": "string", |
| 114 | + "description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)", |
| 115 | + "enum": [ |
| 116 | + "Debug", |
| 117 | + "Release" |
| 118 | + ] |
| 119 | + }, |
| 120 | + "PublishGitHubReleaseChangelogFile": { |
| 121 | + "type": "string" |
| 122 | + }, |
123 | 123 | "UnitTestProject": { |
124 | 124 | "type": "string", |
125 | 125 | "description": "Path to a solution file that is automatically loaded" |
126 | 126 | }, |
127 | 127 | "UnityPackageVersionMatchesGitTagVersionUnityPackageFile": { |
128 | 128 | "type": "string" |
129 | | - }, |
130 | | - "Verbosity": { |
131 | | - "type": "string", |
132 | | - "description": "Logging verbosity during build execution. Default is 'Normal'", |
133 | | - "enum": [ |
134 | | - "Minimal", |
135 | | - "Normal", |
136 | | - "Quiet", |
137 | | - "Verbose" |
138 | | - ] |
139 | 129 | } |
140 | 130 | } |
| 131 | + }, |
| 132 | + { |
| 133 | + "$ref": "#/definitions/NukeBuild" |
141 | 134 | } |
142 | | - } |
| 135 | + ] |
143 | 136 | } |
0 commit comments