forked from mickdelaney/Thinktecture.IdentityServer.v3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.ps1
More file actions
28 lines (20 loc) · 668 Bytes
/
build.ps1
File metadata and controls
28 lines (20 loc) · 668 Bytes
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
Param(
[string]$buildNumber = "0",
[string]$preRelease = $null
)
gci .\source -Recurse "packages.config" |% {
"Restoring " + $_.FullName
.\source\.nuget\nuget.exe i $_.FullName -o .\source\packages
if ($LastExitCode -ne 0) {
exit $LastExitCode
}
}
Import-Module .\source\packages\psake.4.4.1\tools\psake.psm1
if(Test-Path Env:\APPVEYOR_BUILD_NUMBER){
$buildNumber = [int]$Env:APPVEYOR_BUILD_NUMBER
$task = "appVeyor"
Write-Host "Using APPVEYOR_BUILD_NUMBER"
}
"Build number $buildNumber"
Invoke-Psake .\default.ps1 $task -framework "4.0x64" -properties @{ buildNumber=$buildNumber; preRelease=$preRelease }
Remove-Module psake