Skip to content

Instantly share code, notes, and snippets.

@swade1987
Created February 12, 2016 15:54
Show Gist options
  • Save swade1987/5b3b760c2026b1b7af39 to your computer and use it in GitHub Desktop.
Save swade1987/5b3b760c2026b1b7af39 to your computer and use it in GitHub Desktop.
build.ps1
Param(
[string]$version
)
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
$psake_module_dir = "$($scriptPath)\src\Parliament.CDP.Web\packages\psake.4.5.0\tools\psake.psm1"
## run our default built script
Import-Module $psake_module_dir;
Invoke-psake "$($scriptPath)\default.ps1" -t "default" -parameters @{"version"=$version}
if ($psake.build_success -eq $false) { exit 1 } else { exit 0 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment