forked from IdentityServer/IdentityServer3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.ps1
33 lines (23 loc) · 795 Bytes
/
build.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
Param(
[string]$buildNumber = "0",
[string]$preRelease = $null
)
$exists = Test-Path nuget.exe
if ($exists -eq $false) {
$source = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe"
Invoke-WebRequest $source -OutFile nuget.exe
}
.\nuget.exe update -self
gci .\source -Recurse "packages.config" |% {
"Restoring " + $_.FullName
.\nuget.exe install $_.FullName -o .\source\packages
}
Import-Module .\source\packages\psake.4.4.1\tools\psake.psm1
if(Test-Path Env:\APPVEYOR_BUILD_NUMBER){
$buildNumber = [int]$Env:APPVEYOR_BUILD_NUMBER
Write-Host "Using APPVEYOR_BUILD_NUMBER"
$task = "appVeyor"
}
"Build number $buildNumber"
Invoke-Psake .\default.ps1 $task -framework "4.0x64" -properties @{ buildNumber=$buildNumber; preRelease=$preRelease }
Remove-Module psake