-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
18 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
#Requires -Version 5.1 | ||
Write-Host "PowerShell: $($PSVersionTable.PSVersion)" | ||
Write-Host 'Check and install testsuite dependencies ...' | ||
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-Host 'Pester 5 is already installed.' | ||
Write-Output 'Pester 5 is already installed.' | ||
} else { | ||
Write-Host 'Installing Pester 5 ...' | ||
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-Host 'PSScriptAnalyzer is already installed.' | ||
Write-Output 'PSScriptAnalyzer is already installed.' | ||
} else { | ||
Write-Host 'Installing PSScriptAnalyzer ...' | ||
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-Host 'BuildHelpers is already installed.' | ||
Write-Output 'BuildHelpers is already installed.' | ||
} else { | ||
Write-Host 'Installing BuildHelpers ...' | ||
Write-Output 'Installing BuildHelpers ...' | ||
Install-Module -Repository PSGallery -Scope CurrentUser -Force -Name BuildHelpers -SkipPublisherCheck | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters