forked from BSVN/NEventSocket
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.ps1
More file actions
23 lines (19 loc) · 699 Bytes
/
build.ps1
File metadata and controls
23 lines (19 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
param(
[int]$buildNumber = 0,
[string]$task = "default"
)
if(Test-Path Env:\APPVEYOR_BUILD_NUMBER){
$buildNumber = [int]$Env:APPVEYOR_BUILD_NUMBER
Write-Host "Using APPVEYOR_BUILD_NUMBER"
}
"Build number $buildNumber"
$packageConfigs = Get-ChildItem . -Recurse | where{$_.Name -eq "packages.config"}
foreach($packageConfig in $packageConfigs){
Write-Host "Restoring" $packageConfig.FullName
nuget.exe install $packageConfig.FullName -o .\packages
}
Import-Module .\packages\psake.4.4.1\tools\psake.psm1
Import-Module .\BuildFunctions.psm1
Invoke-Psake .\default.ps1 $task -framework "4.5.1" -properties @{ buildNumber=$buildNumber }
Remove-Module BuildFunctions
Remove-Module psake