mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-05-04 00:31:27 +00:00
22 lines
1.1 KiB
PowerShell
22 lines
1.1 KiB
PowerShell
#Requires -Version 5.1
|
|
Write-Output "PowerShell: $($PSVersionTable.PSVersion)"
|
|
Write-Output 'Check and install testsuite dependencies ...'
|
|
if (Get-InstalledModule -Name Pester -MinimumVersion 5.2 -MaximumVersion 5.99 -ErrorAction SilentlyContinue) {
|
|
Write-Output 'Pester 5 is already installed.'
|
|
} else {
|
|
Write-Output 'Installing Pester 5 ...'
|
|
Install-Module -Repository PSGallery -Scope CurrentUser -Force -Name Pester -MinimumVersion 5.2 -MaximumVersion 5.99 -SkipPublisherCheck
|
|
}
|
|
if (Get-InstalledModule -Name PSScriptAnalyzer -MinimumVersion 1.17 -ErrorAction SilentlyContinue) {
|
|
Write-Output 'PSScriptAnalyzer is already installed.'
|
|
} else {
|
|
Write-Output 'Installing PSScriptAnalyzer ...'
|
|
Install-Module -Repository PSGallery -Scope CurrentUser -Force -Name PSScriptAnalyzer -SkipPublisherCheck
|
|
}
|
|
if (Get-InstalledModule -Name BuildHelpers -MinimumVersion 2.0 -ErrorAction SilentlyContinue) {
|
|
Write-Output 'BuildHelpers is already installed.'
|
|
} else {
|
|
Write-Output 'Installing BuildHelpers ...'
|
|
Install-Module -Repository PSGallery -Scope CurrentUser -Force -Name BuildHelpers -SkipPublisherCheck
|
|
}
|