File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,14 @@ install:
32
32
33
33
build_script :
34
34
- ps : |
35
- Set-Location $env:APPVEYOR_BUILD_FOLDER
36
- ./build.ps1 -Documentation
37
- if ( $env:PSVersion -eq "4" ) { # On WMF4: Also build for v3 to check it builds at least since we do not have a WMF3 image
38
- ./build.ps1 -Configuration "$env:BuildConfiguration" -PSVersion 3 -Framework full
35
+ if ( $env:PowerShellEdition -eq 'WindowsPowerShell' ) {
36
+ Set-Location $env:APPVEYOR_BUILD_FOLDER
37
+ ./build.ps1 -Documentation
38
+ if ( $env:PSVersion -eq "4" ) { # On WMF4: Also build for v3 to check it builds at least since we do not have a WMF3 image
39
+ ./build.ps1 -Configuration "$env:BuildConfiguration" -PSVersion 3 -Framework full
40
+ }
41
+ ./build.ps1 -Configuration "$env:BuildConfiguration" -PSVersion "$env:PSVersion" -Framework full
39
42
}
40
- ./build.ps1 -Configuration "$env:BuildConfiguration" -PSVersion "$env:PSVersion" -Framework full
41
43
- pwsh : |
42
44
if ($env:PowerShellEdition -eq 'PowerShellCore') {
43
45
Set-Location $env:APPVEYOR_BUILD_FOLDER
@@ -58,4 +60,4 @@ test_script:
58
60
59
61
# Upload the project along with test results as a zip archive
60
62
on_finish :
61
- - ps : Import-Module "${env:BuildConfiguration }\tools\appveyor.psm1"; Invoke-AppveyorFinish
63
+ - ps : Import-Module "${env:APPVEYOR_BUILD_FOLDER }\tools\appveyor.psm1"; Invoke-AppveyorFinish
Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ function Invoke-AppveyorTest {
50
50
$CheckoutPath
51
51
)
52
52
53
+ Write-Verbose - Verbose (" Running tests on PowerShell version " + $PSVersionTable.PSVersion )
54
+
53
55
$modulePath = $env: PSModulePath.Split ([System.IO.Path ]::PathSeparator) | Where-Object { Test-Path $_ } | Select-Object - First 1
54
56
Copy-Item " ${CheckoutPath} \out\PSScriptAnalyzer" " $modulePath \" - Recurse - Force
55
57
$testResultsFile = " .\TestResults.xml"
You can’t perform that action at this time.
0 commit comments