Skip to content

Add Ubuntu Build+Test to Appveyor CI #940

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 36 commits into from
Mar 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
7fd4fb9
test using pwsh
bergmeister Mar 17, 2018
4a32c11
fix yaml syntax
bergmeister Mar 17, 2018
f56bb83
install platyps on pwsh
bergmeister Mar 17, 2018
bd484a6
appveyor still uses pwsh 6.0.0
bergmeister Mar 17, 2018
a8cea13
fix 1 test for pwsh. 1 remaining
bergmeister Mar 17, 2018
8c6dafa
make test pending that is failing on pwsh on Windows as well.
bergmeister Mar 17, 2018
d5af4a1
re-fix test for pwsh
bergmeister Mar 17, 2018
4d43669
really fix test and simplify
bergmeister Mar 17, 2018
49617f4
tweak and optimize appveyor.yml
bergmeister Mar 17, 2018
71b898d
extract appveyor steps into ps module to eliminate code duplication
bergmeister Mar 17, 2018
7fd574b
fix and simplify test script
bergmeister Mar 17, 2018
92de2ca
fix path problem and put appveyor finish into module as well
bergmeister Mar 17, 2018
796189d
pwsh sessions are not being persisted on appveyor. Fix module deploym…
bergmeister Mar 17, 2018
d14edfe
remove wmf4 image temporarily to run it on the fork again
bergmeister Mar 17, 2018
20025cb
revert test script to non-module version because some tests failed
bergmeister Mar 17, 2018
5f62577
try fix yaml syntax
bergmeister Mar 17, 2018
f880cf9
use consistent space and try $ErrorActionPreference = 'Stop' in appve…
bergmeister Mar 17, 2018
db72dcb
fix appveyorfinish for pwsh and give test-appveyor function a last try
bergmeister Mar 17, 2018
d285e45
take out invoke-appveyortest method since it does not work in the app…
bergmeister Mar 17, 2018
557091f
add wmf4 image as it is ready for PW now.
bergmeister Mar 17, 2018
ef57ef3
install platyps in a wmf4 friendly way
bergmeister Mar 17, 2018
d5c2104
let's try if we can remove the hard coded checkout path (fingers cros…
bergmeister Mar 17, 2018
71facf8
let's try if we can rename the PowerShellEdition to something more me…
bergmeister Mar 17, 2018
34553e0
Set DOTNET_SKIP_FIRST_TIME_EXPERIENCE to 1 to speed-up WMF4 builds, w…
bergmeister Mar 17, 2018
53493c9
make indentation consistent after rename
bergmeister Mar 17, 2018
b535971
remove setting PATH for psmodulepath in yaml (not needed for VS 2017 …
bergmeister Mar 18, 2018
403bb60
try ubuntu image
bergmeister Mar 19, 2018
8bbe0ed
fix ps edition
bergmeister Mar 19, 2018
3cd7667
fix test for linux
bergmeister Mar 19, 2018
a3f0405
add debugging code
bergmeister Mar 19, 2018
160f3a2
fix case sensitivity problems
bergmeister Mar 19, 2018
a0df25c
re-add other images for PR
bergmeister Mar 19, 2018
cdb3dd8
Merge branch 'development' of https://github.com/PowerShell/PSScriptA…
bergmeister Mar 22, 2018
e815a31
git mv rules\UseSupportsShouldProcess.cs Rules\UseSupportsShouldProce…
bergmeister Mar 23, 2018
dca3a82
Merge branch 'development' of https://github.com/PowerShell/PSScriptA…
bergmeister Mar 28, 2018
cc352e4
Merge branch 'development' of https://github.com/PowerShell/PSScriptA…
bergmeister Mar 28, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
10 changes: 6 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,17 @@ environment:
- APPVEYOR_BUILD_WORKER_IMAGE: WMF 4
PowerShellEdition: WindowsPowerShell
BuildConfiguration: PSv3Release
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
PowerShellEdition: PowerShellCore
BuildConfiguration: Release

# cache Nuget packages and dotnet CLI cache
cache:
- '%USERPROFILE%\.nuget\packages -> appveyor.yml'
- '%LocalAppData%\Microsoft\dotnet -> appveyor.yml'

install:
- ps: Import-Module .\tools\appveyor.psm1
- ps: if ($env:PowerShellEdition -eq 'WindowsPowerShell') { Invoke-AppveyorInstall }
- ps: if ($env:PowerShellEdition -eq 'WindowsPowerShell') { Import-Module .\tools\appveyor.psm1; Invoke-AppveyorInstall }
- pwsh: if ($env:PowerShellEdition -eq 'PowerShellCore') { Import-Module .\tools\appveyor.psm1; Invoke-AppveyorInstall }

build_script:
Expand Down Expand Up @@ -47,7 +49,7 @@ test_script:
}
- pwsh: |
if ($env:PowerShellEdition -eq 'PowerShellCore') {
$modulePath = $env:PSModulePath.Split(';') | Where-Object { Test-Path $_} | Select-Object -First 1
$modulePath = $env:PSModulePath.Split([System.IO.Path]::PathSeparator) | Where-Object { Test-Path $_} | Select-Object -First 1
Copy-Item "${env:APPVEYOR_BUILD_FOLDER}\out\PSScriptAnalyzer" "$modulePath\" -Recurse -Force
$testResultsFile = ".\TestResults.xml"
$testScripts = "${env:APPVEYOR_BUILD_FOLDER}\Tests\Engine","${env:APPVEYOR_BUILD_FOLDER}\Tests\Rules"
Expand All @@ -60,4 +62,4 @@ test_script:

# Upload the project along with test results as a zip archive
on_finish:
- ps: Invoke-AppveyorFinish
- ps: Import-Module .\tools\appveyor.psm1; Invoke-AppveyorFinish