File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,40 +27,29 @@ param(
2727)
2828
2929$ErrorActionPreference = ' Stop'
30- ' 1 '
30+
3131# Bootstrap dependencies
3232if ($Bootstrap.IsPresent ) {
33- ' 2'
3433 Get-PackageProvider - Name Nuget - ForceBootstrap | Out-Null
35- ' 3'
3634 Set-PSRepository - Name PSGallery - InstallationPolicy Trusted
37- ' 4'
3835 if ((Test-Path - Path ./ requirements.psd1)) {
39- ' 5'
4036 if (-not (Get-Module - Name PSDepend - ListAvailable)) {
41- ' 6'
4237 Install-Module - Name PSDepend - Repository PSGallery - Scope CurrentUser - Force
4338 }
44- ' 7'
4539 Import-Module - Name PSDepend - Verbose:$false
46- ' 8'
4740 Invoke-PSDepend - Path ' ./requirements.psd1' - Install - Import - Force - WarningAction SilentlyContinue
4841 } else {
4942 Write-Warning ' No [requirements.psd1] found. Skipping build dependency installation.'
5043 }
5144}
5245
5346# Execute psake task(s)
54- ' 9'
5547$psakeFile = ' ./psakeFile.ps1'
5648if ($PSCmdlet.ParameterSetName -eq ' Help' ) {
57- ' 10'
5849 Get-PSakeScriptTasks - buildFile $psakeFile |
5950 Format-Table - Property Name, Description, Alias, DependsOn
6051} else {
61- ' 11'
6252 Set-BuildEnvironment - Force
63- ' 12'
6453 Invoke-psake - buildFile $psakeFile - taskList $Task - nologo - properties $Properties - parameters $Parameters
6554 if ($psake.build_success ) {
6655 " Build complete"
You can’t perform that action at this time.
0 commit comments