-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multi-stage pipelines (to split build->test) (#1404)
* try using multi-job yaml with different images * fix indentation * add vm images to windows build and templatify unix build. Images now are latest ubuntu image * trigger * fix yaml path * disable sporadic tests generally and add both Ubuntu images to the tests * job name in quotes and disable redundant appveyor matrix entries * whitespace not allowed for job name * dots arent allowed either... * last fix * Merge all entry path yaml files into one yaml.ci file * fix windows powershell job * tweak step name for ps5 to be consistent * re-trigger * add badge * multi stage build-test * bootstrap pester * Cleanup and avoid Pester bootstrap in build stage * download pipeline artifact in test stage * try fix artifact download path * try fix artifact path using '$(Build.SourcesDirectory)/out' and add debugging info * fix ps syntax * remove debugging step * Fix suggestion text to have platform specific newlines and enable test on Linux * add more windows images * try use strategy * try * fix job name * rename and try to not use a job name * remove pwsh variable, which is now redundant as it is now in test.yaml * remove old comment * try fix tests on wmf4 * try use -be instead of -match operator * fix wmf4 test failure due to CRLF not being correctly used in this version * make pscompatiblitycollector build against all frameworks again
- Loading branch information
1 parent
a415198
commit 1305c88
Showing
6 changed files
with
76 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,47 @@ | ||
variables: | ||
pwsh: true | ||
# Avoid expensive initialization of dotnet cli, see: https://donovanbrown.com/post/Stop-wasting-time-during-NET-Core-builds | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | ||
|
||
jobs: | ||
- job: 'Ubuntu_16_04' | ||
pool: | ||
vmImage: ubuntu-16.04 | ||
steps: | ||
- template: templates/unix.yaml | ||
|
||
- job: 'Ubuntu_18_04' | ||
pool: | ||
vmImage: ubuntu-18.04 | ||
steps: | ||
- template: templates/unix.yaml | ||
|
||
- job: macOS | ||
pool: | ||
vmImage: macos-latest | ||
steps: | ||
- template: templates/unix.yaml | ||
|
||
- job: 'Windows_PowerShell_5_1' | ||
pool: | ||
vmImage: windows-latest | ||
steps: | ||
- powershell: | | ||
Import-Module .\tools\appveyor.psm1 | ||
Invoke-AppveyorInstall | ||
./build.ps1 -Configuration 'Release' -PSVersion 5 | ||
./PSCompatibilityCollector/build.ps1 -Configuration 'Release' -Framework 'net452' | ||
displayName: 'Build' | ||
- template: templates/test.yaml | ||
parameters: | ||
pwsh: false | ||
|
||
- job: 'Windows_PowerShell_Core' | ||
pool: | ||
vmImage: windows-latest | ||
steps: | ||
- pwsh: | | ||
Import-Module .\tools\appveyor.psm1 | ||
Invoke-AppveyorInstall | ||
./build.ps1 -Configuration 'Release' -All | ||
./PSCompatibilityCollector/build.ps1 -Configuration 'Release' -Framework 'netstandard2.0' | ||
displayName: 'Full Build' | ||
- template: templates/test.yaml | ||
parameters: | ||
pwsh: true | ||
stages: | ||
- stage: Build | ||
jobs: | ||
- job: 'Full_Build' | ||
pool: | ||
vmImage: windows-latest | ||
steps: | ||
- pwsh: | | ||
Import-Module .\tools\appveyor.psm1 | ||
Invoke-AppveyorInstall -SkipPesterInstallation | ||
./build.ps1 -Configuration 'Release' -All | ||
./PSCompatibilityCollector/build.ps1 -Configuration 'Release' | ||
displayName: 'Full Build' | ||
- task: PublishPipelineArtifact@1 | ||
displayName: 'Publish Pipeline Artifact: out Folder' | ||
inputs: | ||
targetPath: '$(Build.SourcesDirectory)/out' | ||
artifactName: out | ||
- stage: Test | ||
jobs: | ||
- job: | ||
strategy: | ||
matrix: | ||
Ubuntu_16_04: | ||
vmImage: ubuntu-16.04 | ||
Ubuntu_18_04: | ||
vmImage: ubuntu-18.04 | ||
macOS: | ||
vmImage: macos-latest | ||
Windows_Server2016_PowerShell_Core: | ||
vmImage: windows-2019 | ||
Windows_Server2019_PowerShell_Core: | ||
vmImage: windows-2019 | ||
Windows_Server2016_PowerShell_5_1: | ||
vmImage: vs2017-win2016 | ||
pwsh: false | ||
Windows_Server2019_PowerShell_5_1: | ||
vmImage: vs2017-win2016 | ||
pwsh: false | ||
pool: | ||
vmImage: $[ variables['vmImage'] ] | ||
steps: | ||
- template: templates/test.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters