-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.ps1
More file actions
24 lines (17 loc) · 619 Bytes
/
build.ps1
File metadata and controls
24 lines (17 loc) · 619 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
Param(
[string]$buildNumber = "0",
[string]$preRelease = $null
)
gci .\source -Recurse "packages.config" |% {
"Restoring " + $_.FullName
.\source\.nuget\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