We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c6ff43 commit 8a3887aCopy full SHA for 8a3887a
tools/appveyor.psm1
@@ -53,8 +53,10 @@ function Invoke-AppveyorTest {
53
54
# set up env:PSModulePath to the build location, don't copy it to the "normal place"
55
$analyzerVersion = ([xml](Get-Content "${CheckoutPath}\Engine\Engine.csproj")).SelectSingleNode(".//VersionPrefix")."#text".Trim()
56
+ $majorVersion = ([System.Version]$analyzerVersion).Major
57
- if ( $analyzerVersion -lt 5 ) {
58
+ Get-ChildItem -rec -file -name "${CheckoutPath}/out" | Write-Verbose -Verbose
59
+ if ( $majorVersion -lt 5 ) {
60
$versionModuleDir = "${CheckoutPath}\out\PSScriptAnalyzer\${analyzerVersion}"
61
Rename-Item "${versionModuleDir}" "${CheckoutPath}\out\PSScriptAnalyzer\PSScriptAnalyzer"
62
$moduleDir = "${CheckoutPath}\out\PSScriptAnalyzer"
0 commit comments