1
1
environment :
2
+ PSVersion : 5
3
+ BuildConfiguration : Release
2
4
matrix :
3
5
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2017
4
6
PowerShellEdition : PowerShellCore
5
- BuildConfiguration : Release
6
7
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2017
7
8
PowerShellEdition : WindowsPowerShell
8
- BuildConfiguration : Release
9
9
- APPVEYOR_BUILD_WORKER_IMAGE : WMF 4
10
10
PowerShellEdition : WindowsPowerShell
11
- BuildConfiguration : PSv4Release
11
+ PSVersion : 4
12
12
- APPVEYOR_BUILD_WORKER_IMAGE : Ubuntu
13
13
PowerShellEdition : PowerShellCore
14
- BuildConfiguration : Release
15
14
16
15
# cache Nuget packages and dotnet CLI cache
17
16
cache :
@@ -33,29 +32,29 @@ install:
33
32
34
33
build_script :
35
34
- ps : |
36
- if ($env:PowerShellEdition -eq 'WindowsPowerShell') {
37
- if ($env:BuildConfiguration -eq 'PSv4Release') {
38
- # On WMF$: Also build for v3 to check it builds at least since we do not have a WMF3 image
39
- Invoke-AppveyorBuild -CheckoutPath $env:APPVEYOR_BUILD_FOLDER -BuildConfiguration PSv3Release -BuildType 'FullCLR'
40
- }
41
- Invoke-AppveyorBuild -CheckoutPath $env:APPVEYOR_BUILD_FOLDER -BuildConfiguration $env:BuildConfiguration -BuildType 'FullCLR'
42
- }
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
39
+ }
40
+ ./build.ps1 -Configuration "$env:BuildConfiguration" -PSVersion "$env:PSVersion" -Framework full
43
41
- pwsh : |
44
- if ($env:PowerShellEdition -eq 'PowerShellCore') {
45
- Import-Module .\tools\appveyor.psm1 # Appveyor does not persist pwsh sessions like it does for ps
46
- Invoke-AppveyorBuild -CheckoutPath $env:APPVEYOR_BUILD_FOLDER -BuildConfiguration $env:BuildConfiguration -BuildType 'NetStandard'
47
- }
42
+ if ($env:PowerShellEdition -eq 'PowerShellCore') {
43
+ Set-Location $env:APPVEYOR_BUILD_FOLDER
44
+ ./build.ps1 -Documentation
45
+ ./build.ps1 -Configuration "$env:BuildConfiguration" -PSVersion 5 -Framework core
46
+ }
48
47
49
48
test_script :
50
49
- ps : |
51
- if ($env:PowerShellEdition -eq 'WindowsPowerShell') {
52
- Invoke-AppveyorTest -CheckoutPath $env:APPVEYOR_BUILD_FOLDER
53
- }
50
+ if ($env:PowerShellEdition -eq 'WindowsPowerShell') {
51
+ Invoke-AppveyorTest -CheckoutPath $env:APPVEYOR_BUILD_FOLDER
52
+ }
54
53
- pwsh : |
55
- if ($env:PowerShellEdition -eq 'PowerShellCore') {
56
- Import-Module .\tools\appveyor.psm1 # Appveyor does not persist pwsh sessions like it does for ps
57
- Invoke-AppveyorTest -CheckoutPath $env:APPVEYOR_BUILD_FOLDER
58
- }
54
+ if ($env:PowerShellEdition -eq 'PowerShellCore') {
55
+ Import-Module .\tools\appveyor.psm1 # Appveyor does not persist pwsh sessions like it does for ps
56
+ Invoke-AppveyorTest -CheckoutPath $env:APPVEYOR_BUILD_FOLDER
57
+ }
59
58
60
59
# Upload the project along with test results as a zip archive
61
60
on_finish :
0 commit comments