forked from webmd-health-services/Carbon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
whiskey.yml
226 lines (221 loc) · 5.88 KB
/
whiskey.yml
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
PublishOn:
- master
- prerelease
Build:
- Version:
Path: Carbon\Carbon.psd1
Prerelease:
- prerelease: rc$(WHISKEY_BUILD_NUMBER)
- PowerShell:
OnlyBy: BuildServer
Path: Save-CarbonSigningKey.ps1
- SetVariable:
SignAssembly: False
Constants: ""
- SetVariable:
IfExists: Source\Carbon.snk
SignAssembly: True
Constants: SIGNED
- MSBuild:
Path: Source\Carbon.sln
Property:
- SignAssembly=$(SignAssembly)
- DotNet:
Command: publish
Path: Source\Test\Carbon.Test.csproj
Argument:
- --no-build
- --framework=netcoreapp2.1
- --configuration=$(WHISKEY_MSBUILD_CONFIGURATION)
- DotNet:
Command: test
Path: Source\Test\Carbon.Test.csproj
Argument:
- --no-build
- --framework=netcoreapp2.1
- --configuration=$(WHISKEY_MSBUILD_CONFIGURATION)
- --results-directory=$(WHISKEY_OUTPUT_DIRECTORY)
- --logger=trx
- NUnit3:
Path: Source\Test\bin\$(WHISKEY_MSBUILD_CONFIGURATION)\net452\Carbon.Test.dll
- Pipeline:
Name: PublishBin
- MergeFile:
OnlyBy: BuildServer
Path:
- Carbon\Functions\*.ps1
- Carbon\Carbon.psm1.Import.Iis.ps1
- Carbon\Carbon.psm1.Import.Lcm.ps1
- Carbon\Carbon.psm1.Import.Post.ps1
Exclude:
- "*\\*-Iis*"
- "*\\Initialize-Lcm.ps1"
- "*\\Use-CallerPreference.ps1"
DestinationPath: Carbon\Carbon.psm1
TextSeparator: "$(NewLine)$(NewLine)"
DeleteSourceFiles: true
- MergeFile:
OnlyBy: BuildServer
Path:
- "Carbon\\Functions\\*-Iis*.ps1"
DestinationPath: Carbon\Functions\Iis.ps1
TextSeparator: "$(NewLine)$(NewLine)"
DeleteSourceFiles: true
- Pipeline:
Name: Tests
- SetVariableFromPowerShellDataFile:
Path: Carbon\Carbon.psd1
Variables:
PrivateData:
PSData:
ReleaseNotes: RELEASE_NOTES
Tags: TAGS
- CopyFile:
Path:
- LICENSE.txt
- NOTICE.txt
- README.md
- CHANGELOG.md
DestinationDirectory: Carbon
- NuGetPack:
Path: Carbon.nuspec
Properties:
ReleaseNotes: $(RELEASE_NOTES)
Tags: $(TAGS)
- Zip:
ArchivePath: .output\Carbon.zip
Path:
- Carbon
- examples
Exclude:
- "*.pdb"
- "*.orig"
PublishBin:
- MSBuild:
Path:
- Source\Carbon.csproj
- Source\Iis\*.csproj
- Source\Xdt\*.csproj
Target: publish
Property:
- TargetFramework=net452
- PublishDir=$(WHISKEY_BUILD_ROOT)\Carbon\bin\fullclr
- MSBuild:
Path:
- Source\Carbon.csproj
- Source\Iis\*.csproj
- Source\Xdt\*.csproj
Target: publish
Property:
- TargetFramework=netstandard2.0
- PublishDir=$(WHISKEY_BUILD_ROOT)\Carbon\bin\coreclr
- SelfContained=false
- Delete:
OnlyDuring: Build
OnlyBy: BuildServer
Path: Carbon\bin\*.pdb
# We don't need to include any assemblies that ship with PowerShell
- Delete:
OnlyDuring: Build
Path:
- Carbon\bin\coreclr\runtimes
- Carbon\bin\coreclr\*.json
- Carbon\bin\coreclr\System.*.dll
- Carbon\bin\coreclr\Microsoft.Win32.Registry.dll
Tests:
- TaskDefaults:
Pester4:
DescribeDurationReportCount: 20
WarningAction: SilentlyContinue
- PowerShell:
OnlyDuring: Build
Path: Start-CarbonTest.ps1
- Pester4:
OnlyBy: Developer
Script:
- Test\Bin.Tests.ps1
- Test\Import-Carbon.Tests.ps1
- Test\LicenseNotices.Tests.ps1
- Test\*.ps1xml.Tests.ps1
- Test\Website.Tests.ps1
- Test\System.Diagnostics.Process.types.Tests.ps1
- PowerShell:
OnlyDuring: Build
OnlyBy: Developer
Path: Tools\Blade\blade.ps1
Argument:
Path:
- Test\Test-Documentation.ps1
- Test\Test-ImportCarbon.ps1
# These tests fail when run in parallel so they get run first.
- Pester4:
OnlyBy: BuildServer
Script:
- Test\*Iis*.ps1
- Test\Carbon_*.Tests.ps1
- Parallel:
OnlyBy: BuildServer
Queues:
- Tasks:
- Pester4:
Script:
- Test\*-ScheduledTask.Tests.ps1
- Tasks:
- Pester4:
Script:
- Test\*.Tests.ps1
Exclude:
- "*\\Test\\*Iis*.ps1"
- "*\\Test\\Carbon_*.Tests.ps1"
- "*\\Test\\*-ScheduledTask.Tests.ps1"
- Tasks:
- PowerShell:
WarningAction: SilentlyContinue
OnlyDuring: Build
Path: Invoke-CarbonBladeTest.ps1
Argument:
Recurse: true
Path: Test
PassThru: true
- PowerShell:
OnlyDuring: Build
OnlyBy: Developer
Path: Complete-CarbonTest.ps1
- PowerShell:
OnlyBy: BuildServer
Path: Format-TestResult.ps1
Argument:
OutputPath: $(WHISKEY_OUTPUT_DIRECTORY)
Publish:
- PublishPowerShellModule:
UnlessExists: env:APPVEYOR_PULL_REQUEST_NUMBER
Path: Carbon
RepositoryName: PSGallery
RepositoryUri: https://www.powershellgallery.com/api/v2/
ApiKeyID: powershellgallery.com
- NuGetPush:
OnlyOnBranch:
- master
UnlessExists: env:APPVEYOR_PULL_REQUEST_NUMBER
Uri: https://nuget.org/api/v2/package
ApiKeyID: nuget.org
SkipUploadedCheck: true
- NuGetPush:
OnlyOnBranch:
- master
UnlessExists: env:APPVEYOR_PULL_REQUEST_NUMBER
Uri: https://chocolatey.org/api/v2/package
ApiKeyID: chocolatey.org
SkipUploadedCheck: true
- GitHubRelease:
UnlessExists: env:APPVEYOR_PULL_REQUEST_NUMBER
RepositoryName: webmd-health-services/Carbon
ApiKeyID: github.com
Tag: $(WHISKEY_SEMVER2_NO_BUILD_METADATA)
Commitish: $(WHISKEY_SCM_COMMIT_ID)
Name: $(WHISKEY_SEMVER2_NO_BUILD_METADATA)
Description: $(RELEASE_NOTES)
Assets:
- Path: .output\Carbon.zip
ContentType: application/zip
Name: Carbon-$(WHISKEY_SEMVER2_NO_BUILD_METADATA).zip