Skip to content

Commit

Permalink
more debugging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWTruher committed Jun 2, 2019
1 parent 8a3887a commit cbb59cf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tools/appveyor.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,17 @@ function Invoke-AppveyorTest {
# set up env:PSModulePath to the build location, don't copy it to the "normal place"
$analyzerVersion = ([xml](Get-Content "${CheckoutPath}\Engine\Engine.csproj")).SelectSingleNode(".//VersionPrefix")."#text".Trim()
$majorVersion = ([System.Version]$analyzerVersion).Major
$psMajorVersion = $PSVersionTable.PSVersion.Major

Get-ChildItem -rec -file -name "${CheckoutPath}/out" | Write-Verbose -Verbose
if ( $majorVersion -lt 5 ) {
Write-Verbose -verbose "version is $majorVersion"
if ( $psMajorVersion -lt 5 ) {
$versionModuleDir = "${CheckoutPath}\out\PSScriptAnalyzer\${analyzerVersion}"
Rename-Item "${versionModuleDir}" "${CheckoutPath}\out\PSScriptAnalyzer\PSScriptAnalyzer"
$renameTarget = "${CheckoutPath}\out\PSScriptAnalyzer\PSScriptAnalyzer"
Write-Verbose -Verbose "versionModuleDir: ${versionModuleDir}"
Write-Verbose -Verbose "renameTarget: ${renameTarget}"
Write-Verbose -Verbose "target exists: $(Test-Path $renameTarget)"
Rename-Item "${versionModuleDir}" "${renameTarget}"
$moduleDir = "${CheckoutPath}\out\PSScriptAnalyzer"
}
else{
Expand Down

0 comments on commit cbb59cf

Please sign in to comment.