Skip to content

Commit

Permalink
log information about installed modules
Browse files Browse the repository at this point in the history
  • Loading branch information
FH-Inway committed Oct 5, 2024
1 parent c76dfbd commit 0b90b71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions build/buildtools.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ foreach ($item in $modules) {
if ($null -eq $module) {
Write-Host "Installing $item" -ForegroundColor Cyan
Install-Module -Name $item -Force -Confirm:$false -Scope CurrentUser -AllowClobber -SkipPublisherCheck
Get-Mdoule -Name $item -ListAvailable
}

Import-Module $item -Force
Expand Down
5 changes: 2 additions & 3 deletions build/vsts-prerequisites.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ Write-Host "The user running is: $($env:UserName)"
# $modules = @("PSFramework", "Az.Storage", "AzureAd", "PSNotification", "PSOAuthHelper", "PowerShellGet", "PackageManagement","ImportExcel","PSScriptAnalyzer")
$modules = @("PSFramework", "PSScriptAnalyzer", "Az.Storage", "AzureAd", "PSNotification", "PSOAuthHelper", "ImportExcel")

Write-Host "Installing Pester, maximum version 4.99.99" -ForegroundColor Cyan
Install-Module "Pester" -MaximumVersion 4.99.99 -Force -Confirm:$false -Scope CurrentUser -AllowClobber -SkipPublisherCheck
# TODO: When issue #645 with PSFramework is resolved, this line can be removed again.
# https://github.com/PowershellFrameworkCollective/psframework/issues/645
Install-Module "PSFramework" -MaximumVersion 1.11.343 -Force -Confirm:$false -Scope CurrentUser -AllowClobber -SkipPublisherCheck

foreach ($item in $modules) {

Expand All @@ -16,6 +14,7 @@ foreach ($item in $modules) {
if ($null -eq $module) {
Write-Host "Installing $item" -ForegroundColor Cyan
Install-Module -Name $item -Force -Confirm:$false -Scope CurrentUser -AllowClobber -SkipPublisherCheck
Get-Module -Name $item -ListAvailable
}

Import-Module $item -Force
Expand Down

0 comments on commit 0b90b71

Please sign in to comment.