forked from mccalltd/AttributeRouting
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpsake.ps1
More file actions
25 lines (18 loc) · 662 Bytes
/
psake.ps1
File metadata and controls
25 lines (18 loc) · 662 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
param(
$tasks = "Default",
$version
)
#========================================
# Ensure we have required params
#========================================
while (-not $tasks) { $tasks = Read-Host "Tasks" }
while (-not $version) { $version = Read-Host "Version" }
#========================================
# Run the build
#========================================
$base_dir = Split-Path $MyInvocation.MyCommand.Definition
Import-Module $base_dir\tools\psake\psake.psm1 -Force
Invoke-psake $base_dir\default.ps1 $tasks -properties @{ "version" = $version }
if (-not $psake.build_success) {
Write-Host "Error during build!" -ForegroundColor Red
}