forked from pester/Pester
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuild.bat
More file actions
15 lines (12 loc) · 679 Bytes
/
Build.bat
File metadata and controls
15 lines (12 loc) · 679 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@echo off
if '%1'=='/?' goto help
if '%1'=='-help' goto help
if '%1'=='help' goto help
if '%1'=='-h' goto help
%~dp0vendor\tools\nuget.exe Install %~dp0vendor\packages.config -o %~dp0vendor\packages
powershell -NoProfile -ExecutionPolicy Bypass -Command ^
"$psakeDir = ([array](dir %~dp0Vendor\packages\psake.*))[-1]; .$psakeDir\tools\psake.ps1 build.psake.ps1 %* -ScriptPath $psakeDir\tools ; if ($psake.build_success -eq $false) { exit 1 } else { exit 0 }"
goto :eof
:help
powershell -NoProfile -ExecutionPolicy Bypass -Command ^
"$psakeDir = ([array](dir %~dp0Vendor\packages\psake.*))[-1]; .$psakeDir\tools\psake.ps1 build.psake.ps1 -docs -ScriptPath $psakeDir\tools"