-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.depend.ps1
More file actions
25 lines (22 loc) · 843 Bytes
/
Copy pathinstall.depend.ps1
File metadata and controls
25 lines (22 loc) · 843 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
# Bootstrap environment
Get-PackageProvider -Name 'NuGet' -ForceBootstrap | Out-Null
# Install PSDepend module if it is not already installed
if (-not (Get-Module -Name 'PSDepend' -ListAvailable)) {
Write-Output "`nPSDepend is not yet installed...installing PSDepend now..."
Install-Module -Name 'PSDepend' -Scope 'CurrentUser' -Force
}
else {
Write-Output "`nPSDepend already installed...skipping."
}
# Install build dependencies
$psdependencyConfigPath = Join-Path -Path $PSScriptRoot -ChildPath 'install.depend.psd1'
Write-Output "Checking / resolving module dependencies from [$psdependencyConfigPath]..."
Import-Module -Name 'PSDepend'
$invokePSDependParams = @{
Path = $psdependencyConfigPath
Import = $true
Confirm = $false
Install = $true
Verbose = $false
}
Invoke-PSDepend @invokePSDependParams