Skip to content

Commit 511216c

Browse files
committed
run PowerShell Core tests only if image has at least 6.0.2 as required by the new system.management.automation package.
1 parent 81bdc15 commit 511216c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ test_script:
4848
}
4949
}
5050
- pwsh: |
51-
if ($env:PowerShellEdition -eq 'PowerShellCore') {
51+
if ($env:PowerShellEdition -eq 'PowerShellCore' -and $PSVersionTable.PSVersion -ge [version]'6.0.2') {
5252
$modulePath = $env:PSModulePath.Split([System.IO.Path]::PathSeparator) | Where-Object { Test-Path $_} | Select-Object -First 1
5353
Copy-Item "${env:APPVEYOR_BUILD_FOLDER}\out\PSScriptAnalyzer" "$modulePath\" -Recurse -Force
5454
$testResultsFile = ".\TestResults.xml"

0 commit comments

Comments
 (0)