forked from SchemaStore/schemastore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.json
781 lines (781 loc) · 22.5 KB
/
appveyor.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
{
"$schema": "http://json-schema.org/draft-04/schema#",
"allOf": [
{
"$ref": "#/definitions/job"
}
],
"definitions": {
"possiblySecretString": {
"anyOf": [
{
"type": "string",
"description": "This value will be used directly (regular string)"
},
{
"type": "number",
"description": "This value will be treated as a string even though it is a number"
},
{
"title": "secret string",
"type": "object",
"additionalProperties": false,
"properties": {
"secure": {
"type": "string",
"description": "This should have been encrypted by the same user account to which the project belongs"
}
}
}
]
},
"commitFilter": {
"title": "commit filter",
"type": "object",
"additionalProperties": false,
"properties": {
"message": {
"type": "string",
"format": "regex",
"description": "Regex for matching commit message"
},
"author": {
"description": "Commit author's username, name, email or regexp matching one of these.",
"anyOf": [
{
"type": "string",
"format": "regex"
},
{
"type": "string"
}
]
},
"files": {
"type": "array",
"description": "Only specific files (glob patterns)",
"items": {
"type": "string"
}
}
}
},
"command": {
"title": "command",
"oneOf": [
{
"type": "string",
"description": "Run a batch command"
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"ps": {
"type": "string",
"description": "Run a PowerShell command"
}
}
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"pwsh": {
"type": "string",
"description": "Run a PowerShell Core command"
}
}
},
{
"type": "object",
"description": "Run a batch command",
"additionalProperties": false,
"properties": {
"cmd": {
"type": "string"
}
}
},
{
"type": "object",
"description": "Run a Bash command",
"additionalProperties": false,
"properties": {
"sh": {
"type": "string"
}
}
}
]
},
"envVarHash": {
"title": "environment variable hash",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/possiblySecretString"
}
},
"platform": {
"enum": ["x86", "x64", "ARM", "ARM64", "Win32", "Any CPU"]
},
"configuration": {
"type": "string"
},
"imageName": {
"enum": [
"macOS",
"macOS-Mojave",
"macos-bigsur",
"macos-monterey",
"Previous macOS",
"Previous macOS-Mojave",
"Ubuntu",
"Ubuntu1604",
"Ubuntu1804",
"Ubuntu2004",
"Ubuntu2204",
"Previous Ubuntu",
"Previous Ubuntu1604",
"Previous Ubuntu1804",
"Previous Ubuntu2004",
"Visual Studio 2013",
"Visual Studio 2015",
"Visual Studio 2017",
"Visual Studio 2019",
"Visual Studio 2022",
"Visual Studio 2017 Preview",
"Visual Studio 2019 Preview",
"Previous Visual Studio 2013",
"Previous Visual Studio 2015",
"Previous Visual Studio 2017",
"Previous Visual Studio 2019",
"Previous Visual Studio 2022",
"zhaw18",
"WMF 5"
]
},
"image": {
"description": "Build worker image (VM template) -DEV_VERSION",
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/imageName"
}
},
{
"$ref": "#/definitions/imageName"
}
]
},
"jobScalars": {
"title": "job scalars",
"type": "object",
"properties": {
"image": {
"$ref": "#/definitions/image"
},
"platform": {
"description": "Build platform, i.e. x86, x64, Any CPU. This setting is optional",
"oneOf": [
{
"$ref": "#/definitions/platform"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/platform"
}
}
]
},
"configuration": {
"description": "Build Configuration, i.e. Debug, Release, etc.",
"oneOf": [
{
"$ref": "#/definitions/configuration"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/configuration"
}
}
]
}
},
"allOf": [
{
"not": {
"required": ["skip_tags"]
}
},
{
"not": {
"required": ["skip_commits"]
}
},
{
"not": {
"required": ["skip_branch_with_pr"]
}
},
{
"not": {
"required": ["skip_non_tags"]
}
}
]
},
"job": {
"title": "job",
"type": "object",
"properties": {
"version": {
"description": "Version format",
"type": "string"
},
"branches": {
"title": "branch options",
"type": "object",
"description": "Branches to build",
"additionalProperties": false,
"properties": {
"only": {
"description": "Whitelist",
"type": "array",
"items": {
"type": "string"
}
},
"except": {
"type": "array",
"description": "Blacklist",
"items": {
"type": "string"
}
}
}
},
"skip_tags": {
"type": "boolean",
"description": "Do not build on tags (GitHub and BitBucket)"
},
"skip_non_tags": {
"type": "boolean",
"description": "Start builds on tags only (GitHub and BitBucket)"
},
"skip_commits": {
"$ref": "#/definitions/commitFilter",
"description": "Skipping commits with particular message or from specific user"
},
"only_commits": {
"$ref": "#/definitions/commitFilter",
"description": "Including commits with particular message or from specific user"
},
"skip_branch_with_pr": {
"type": "boolean",
"description": "Do not build feature branch with open Pull Requests"
},
"max_jobs": {
"description": "Maximum number of concurrent jobs for the project",
"type": "integer"
},
"notifications": {
"type": "array",
"items": {
"title": "notification",
"type": "object"
}
},
"image": {
"$ref": "#/definitions/image"
},
"init": {
"description": "Scripts that are called at very beginning, before repo cloning",
"type": "array",
"items": {
"$ref": "#/definitions/command"
}
},
"clone_folder": {
"type": "string",
"description": "Clone directory"
},
"shallow_clone": {
"type": "boolean",
"description": "Fetch repository as zip archive",
"default": false
},
"clone_depth": {
"description": "Set git clone depth",
"type": "integer"
},
"hosts": {
"title": "host options",
"type": "object",
"description": "Setting up etc\\hosts file",
"additionalProperties": {
"type": "string",
"anyOf": [
{
"format": "ipv4"
},
{
"format": "ipv6"
}
]
}
},
"environment": {
"description": "Environment variables",
"anyOf": [
{
"title": "environment options",
"type": "object",
"properties": {
"global": {
"$ref": "#/definitions/envVarHash",
"description": "variables defined here are no different than those defined at top level of 'environment' node"
},
"matrix": {
"type": "array",
"description": "an array of environment variables, each member of which is one dimension in the build matrix calculation",
"items": {
"$ref": "#/definitions/envVarHash"
}
}
}
},
{
"$ref": "#/definitions/envVarHash"
}
]
},
"matrix": {
"title": "matrix options",
"type": "object",
"additionalProperties": false,
"properties": {
"fast_finish": {
"type": "boolean",
"description": "Set this flag to immediately finish build once one of the jobs fails"
},
"allow_failures": {
"type": "array",
"description": "This is how to allow failing jobs in the matrix",
"items": {
"$ref": "#/definitions/jobScalars"
}
},
"exclude": {
"type": "array",
"description": "Exclude configuration from the matrix. Works similarly to 'allow_failures' but build not even being started for excluded combination.",
"items": {
"$ref": "#/definitions/job"
}
}
}
},
"cache": {
"type": "array",
"description": "Build cache to preserve files/folders between builds",
"items": {
"type": "string"
}
},
"services": {
"type": "array",
"description": "Enable service required for build/tests",
"items": {
"enum": [
"docker",
"iis",
"mongodb",
"msmq",
"mssql",
"mssql2008r2sp2",
"mssql2008r2sp2rs",
"mssql2012sp1",
"mssql2012sp1rs",
"mssql2014",
"mssql2014rs",
"mssql2016",
"mssql2017",
"mysql",
"postgresql",
"postgresql93",
"postgresql94",
"postgresql95",
"postgresql96",
"postgresql10",
"postgresql11",
"postgresql12",
"postgresql13"
]
}
},
"install": {
"description": "Scripts that run after cloning repository",
"type": "array",
"items": {
"$ref": "#/definitions/command"
}
},
"assembly_info": {
"title": "assembly options",
"type": "object",
"description": "Enable patching of AssemblyInfo.* files",
"additionalProperties": false,
"properties": {
"patch": {
"type": "boolean"
},
"file": {
"type": "string"
},
"assembly_version": {
"type": "string"
},
"assembly_file_version": {
"type": "string"
},
"assembly_informational_version": {
"type": "string"
}
}
},
"nuget": {
"title": "NuGet options",
"type": "object",
"description": "Automatically register private account and/or project AppVeyor NuGet feeds",
"properties": {
"account_feed": {
"type": "boolean"
},
"project_feed": {
"type": "boolean"
},
"disable_publish_on_pr": {
"type": "boolean",
"description": "Disable publishing of .nupkg artifacts to account/project feeds for pull request builds"
}
}
},
"platform": {
"description": "Build platform, i.e. x86, x64, Any CPU. This setting is optional",
"oneOf": [
{
"$ref": "#/definitions/platform"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/platform"
}
}
]
},
"configuration": {
"description": "Build Configuration, i.e. Debug, Release, etc.",
"oneOf": [
{
"$ref": "#/definitions/configuration"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/configuration"
}
}
]
},
"build": {
"oneOf": [
{
"type": "boolean",
"enum": [false]
},
{
"title": "build options",
"type": "object",
"additionalProperties": false,
"properties": {
"parallel": {
"type": "boolean",
"description": "Enable MSBuild parallel builds"
},
"project": {
"type": "string",
"description": "Path to Visual Studio solution or project"
},
"publish_wap": {
"type": "boolean",
"description": "Package Web Application Projects (WAP) for Web Deploy"
},
"publish_wap_xcopy": {
"type": "boolean",
"description": "Package Web Application Projects (WAP) for XCopy deployment"
},
"publish_wap_beanstalk": {
"type": "boolean",
"description": "Package Web Applications for AWS Elastic Beanstalk deployment"
},
"publish_wap_octopus": {
"type": "boolean",
"description": "Package Web Applications for Octopus deployment"
},
"publish_azure_webjob": {
"type": "boolean",
"description": "Package Azure WebJobs for Zip Push deployment"
},
"publish_azure": {
"type": "boolean",
"description": "Package Azure Cloud Service projects and push to artifacts"
},
"publish_aspnet_core": {
"type": "boolean",
"description": "Package ASP.NET Core projects"
},
"publish_core_console": {
"type": "boolean",
"description": "Package .NET Core console projects"
},
"publish_nuget": {
"type": "boolean",
"description": "Package projects with .nuspec files and push to artifacts"
},
"publish_nuget_symbols": {
"type": "boolean",
"description": "Generate and publish NuGet symbol packages"
},
"include_nuget_references": {
"type": "boolean",
"description": "Add -IncludeReferencedProjects option while packaging NuGet artifacts"
},
"verbosity": {
"enum": ["quiet", "minimal", "normal", "detailed"],
"description": "MSBuild verbosity level"
}
}
}
]
},
"before_build": {
"description": "Scripts to run before build",
"type": "array",
"items": {
"$ref": "#/definitions/command"
}
},
"before_package": {
"description": "Scripts to run *after* solution is built and *before* automatic packaging occurs (web apps, NuGet packages, Azure Cloud Services)",
"type": "array",
"items": {
"$ref": "#/definitions/command"
}
},
"after_build": {
"description": "Scripts to run after build",
"type": "array",
"items": {
"$ref": "#/definitions/command"
}
},
"build_script": {
"description": "To run your custom scripts instead of automatic MSBuild",
"type": "array",
"items": {
"$ref": "#/definitions/command"
}
},
"before_test": {
"description": "Scripts to run before tests",
"type": "array",
"items": {
"$ref": "#/definitions/command"
}
},
"test": {
"oneOf": [
{
"type": "boolean",
"enum": [false],
"description": "To disable automatic tests"
},
{
"title": "test options",
"description": "To run tests again only selected assemblies and/or categories",
"type": "object",
"additionalProperties": false,
"properties": {
"assemblies": {
"title": "assembly options",
"type": "object",
"additionalProperties": false,
"properties": {
"only": {
"type": "array",
"items": {
"type": "string"
}
},
"except": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"categories": {
"oneOf": [
{
"title": "category options",
"type": "object",
"additionalProperties": false,
"properties": {
"only": {
"type": "array",
"items": {
"type": "string"
}
},
"except": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
{
"description": "To run tests from different categories as separate jobs in parallel",
"type": "array",
"items": {
"oneOf": [
{
"type": "string",
"description": "A category common for all jobs"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
}
}
]
}
}
}
]
},
"test_script": {
"description": "To run your custom scripts instead of automatic tests",
"type": "array",
"items": {
"$ref": "#/definitions/command"
}
},
"after_test": {
"type": "array",
"description": "Scripts to run after tests",
"items": {
"$ref": "#/definitions/command"
}
},
"artifacts": {
"type": "array",
"items": {
"title": "artifact options",
"type": "object",
"additionalProperties": false,
"properties": {
"path": {
"type": "string"
},
"name": {
"type": "string"
},
"type": {
"enum": [
"Auto",
"WebDeployPackage",
"NuGetPackage",
"AzureCloudService",
"AzureCloudServiceConfig",
"SsdtPackage",
"Zip",
"File"
]
}
},
"required": ["path"]
}
},
"before_deploy": {
"type": "array",
"description": "Scripts to run before deployment",
"items": {
"$ref": "#/definitions/command"
}
},
"deploy": {
"oneOf": [
{
"enum": ["off"]
},
{
"type": "array",
"items": {
"title": "deployment options",
"type": "object"
}
}
]
},
"deploy_script": {
"description": "To run your custom scripts instead of provider deployments",
"type": "array",
"items": {
"$ref": "#/definitions/command"
}
},
"after_deploy": {
"type": "array",
"description": "Scripts to run after deployment",
"items": {
"$ref": "#/definitions/command"
}
},
"on_success": {
"type": "array",
"description": "On successful build",
"items": {
"$ref": "#/definitions/command"
}
},
"on_failure": {
"type": "array",
"description": "On build failure",
"items": {
"$ref": "#/definitions/command"
}
},
"on_finish": {
"type": "array",
"description": "After build failure or success",
"items": {
"$ref": "#/definitions/command"
}
}
}
}
},
"id": "https://json.schemastore.org/appveyor.json",
"title": "JSON schema for AppVeyor CI configuration files"
}