Skip to content

Commit

Permalink
additional debugging output for appveyor build
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWTruher committed May 31, 2019
1 parent 6c6ff43 commit 8a3887a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/appveyor.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ 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

if ( $analyzerVersion -lt 5 ) {
Get-ChildItem -rec -file -name "${CheckoutPath}/out" | Write-Verbose -Verbose
if ( $majorVersion -lt 5 ) {
$versionModuleDir = "${CheckoutPath}\out\PSScriptAnalyzer\${analyzerVersion}"
Rename-Item "${versionModuleDir}" "${CheckoutPath}\out\PSScriptAnalyzer\PSScriptAnalyzer"
$moduleDir = "${CheckoutPath}\out\PSScriptAnalyzer"
Expand Down

0 comments on commit 8a3887a

Please sign in to comment.