-
Notifications
You must be signed in to change notification settings - Fork 394
Multi-stage pipelines (to split build->test) #1404
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
Changes from 35 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
e7a7c54
try using multi-job yaml with different images
bergmeister 2e4c403
fix indentation
bergmeister e669e48
add vm images to windows build and templatify unix build. Images now …
bergmeister ca51510
trigger
bergmeister ac4894c
fix yaml path
bergmeister d2188be
disable sporadic tests generally and add both Ubuntu images to the tests
bergmeister ba896ab
job name in quotes and disable redundant appveyor matrix entries
bergmeister c50c02a
whitespace not allowed for job name
bergmeister ec0fcb7
dots arent allowed either...
bergmeister 4afd0c6
last fix
bergmeister a503c15
Merge all entry path yaml files into one yaml.ci file
bergmeister e31aead
fix windows powershell job
bergmeister 06d6631
tweak step name for ps5 to be consistent
bergmeister 9c4445b
re-trigger
bergmeister dfe241a
add badge
bergmeister 58df168
multi stage build-test
b4ef261
bootstrap pester
2623e58
Cleanup and avoid Pester bootstrap in build stage
c7bbb5f
download pipeline artifact in test stage
270bb78
try fix artifact download path
db7d529
try fix artifact path using '$(Build.SourcesDirectory)/out' and add d…
7a13f38
fix ps syntax
ca2c14c
remove debugging step
e4717dd
Fix suggestion text to have platform specific newlines and enable tes…
4459f9e
add more windows images
c34fb1a
try use strategy
164bca3
try
329f712
fix job name
f5edd4e
rename and try to not use a job name
5c8bb36
remove pwsh variable, which is now redundant as it is now in test.yaml
06309b8
remove old comment
6ff0c07
try fix tests on wmf4
bb95ab4
try use -be instead of -match operator
8eaf6fd
fix wmf4 test failure due to CRLF not being correctly used in this ve…
20e5b1b
Merge branch 'master' of https://github.com/powershell/psscriptanalyz…
9f81fab
make pscompatiblitycollector build against all frameworks again
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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' -Framework 'netstandard2.0' | ||
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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.