forked from pester/Pester
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.ps1
34 lines (25 loc) · 866 Bytes
/
release.ps1
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
# build should provide '%system.teamcity.build.checkoutDir%'
param (
[Parameter(Mandatory)]
[String] $CertificateThumbprint,
[Parameter(Mandatory)]
[String] $NugetApiKey,
[String] $ChocolateyApiKey,
[Parameter(Mandatory)]
[String] $PsGalleryApiKey
)
.\updateGherkinLanguageFile.ps1
$ErrorActionPreference = 'Stop'
# run this in seperate instance otherwise Gherkin.dll is loaded and
$process = Start-Process powershell -ArgumentList "-c", ".\testRelease.ps1 -LocalBuild" -NoNewWindow -Wait -PassThru
if ($process.ExitCode -ne 0) {
throw "Testing failed with exit code $($process.ExitCode)."
}
.\getNugetExe.ps1
.\cleanUpBeforeBuild.ps1
.\signModule.ps1 -Thumbprint $CertificateThumbprint
.\buildNugetPackage.ps1
.\buildPSGalleryPackage.ps1
# .\publishPSGalleryPackage.ps1 $PsGalleryApiKey
# publish nuget
# publish chocolatey