2 changed files
Build | ||
build.ps1 | ||
Tests/Common | ||
Help.Tests.ps1 | ||
Add comment 20
Add comment 21 # Install PSDepend module if it is not already installed
Add comment 22 if (-not (Get-Module -Name 'PSDepend' -ListAvailable)) {
Add comment 23 Minus Install-Module -Name 'PSDepend' -Scope 'CurrentUser' -Force -Confirm:$false
Add comment 23 Plus Write-Output "`nPSDepend is not yet installed...installing PSDepend now..."
Add comment 24 Plus Install-Module -Name 'PSDepend' -Scope 'CurrentUser' -Confirm:$false
Add comment 25 Plus } else {
Add comment 26 Plus Write-Output "`nPSDepend already installed...skipping."
Add comment 24 27 }
Add comment 25 28
Add comment 26 29 # Install build dependencies
Add comment 29 32 Path = (Join-Path -Path $PSScriptRoot -ChildPath 'psvcloud.depend.psd1')
Add comment 30 33 # Tags = 'Bootstrap'
Add comment 31 34 Import = $true
Add comment 32 Minus Force = $true
Add comment 35 Plus Confirm = $false
Add comment 33 36 Install = $true
Add comment 37 Plus # Verbose = $true
Add comment 34 38 }
Add comment 35 39 Invoke-PSDepend @invokePSDependParams
Add comment 36 40
Add comment 37 41 # Init BuildHelpers
Add comment 38 42 Set-BuildEnvironment -Force
Add comment 39 43
Add comment 44 Plus # Import module
Add comment 45 Plus Import-Module -Name $env:BHPSModuleManifest -ErrorAction 'Stop' -Force
Add comment 46 Plus
Add comment 40 47 # Execute PSake tasts
Add comment 41 48 $invokePsakeParams = @{
Add comment 42 Minus buildFile = (Join-Path -Path $ENV:BHProjectPath -ChildPath 'Build\build.psake.ps1')
Add comment 49 Plus buildFile = (Join-Path -Path $env:BHProjectPath -ChildPath 'Build\build.psake.ps1')
Add comment 43 50 nologo = $true
Add comment 44 51 }
Add comment 45 52 Invoke-Psake @invokePsakeParams @PSBoundParameters
Add comment 46 53
Add comment 47 54 Write-Output "`nFINISHED TASKS: $($TaskList -join ',')"
Add comment 48 Minus exit ( [int]( -not $psake.build_success ) )
Add comment 55 Plus exit ( [int](-not $psake.build_success) )
Add comment 49 56