-
Notifications
You must be signed in to change notification settings - Fork 1.4k
PR validation pipelines with Rush #2817
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
mitchdenny
merged 15 commits into
Azure:master
from
mitchdenny:users/mitchdenny/pr-validation-pipelines
May 15, 2019
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
c98bb7c
Initial stab at rush-based PR validation pipelines.
mitchdenny a70757f
Changing template path.
mitchdenny 9fbcfcd
Fixed publish step.
mitchdenny 65f7869
Added in other services.
mitchdenny ae03cc2
Not building on Windows for some reason, investigating.
mitchdenny 80ce316
Fixed up the build.
mitchdenny 9e7efa6
Fixed variable name - duh!
mitchdenny 6810f93
Undid .npmignore changes.
mitchdenny 54b952b
Cleaning up changes to .npmignore files.
mitchdenny 6e6c214
Added verbose flags.
mitchdenny 4a0c7d7
Using expression syntax to make template flexible.
mitchdenny 076a44b
Changed not to ne.
mitchdenny aa6e9e0
Switching to parameters in ci.yml for this scenario.
mitchdenny 9e6272c
Switched variable usage to parameters (+prettier ... sorry!)
mitchdenny 995b151
Addresses feedback from bsiegel.
mitchdenny 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 |
|---|---|---|
| @@ -0,0 +1,176 @@ | ||
| jobs: | ||
| - job: "Build" | ||
| variables: | ||
| - template: ../variables/globals.yml | ||
|
|
||
| pool: | ||
| vmImage: "ubuntu-16.04" | ||
|
|
||
| steps: | ||
| - task: NodeTool@0 | ||
| inputs: | ||
| versionSpec: "$(NodeVersion)" | ||
| displayName: "Install Node.js $(NodeVersion)" | ||
|
|
||
| - script: | | ||
| node common/scripts/install-run-rush.js install | ||
| displayName: "Install dependencies" | ||
|
|
||
| - ${{ if eq(parameters.PackageName,'')}}: | ||
| - script: | | ||
| node common/scripts/install-run-rush.js build --verbose | ||
| displayName: "Build libraries" | ||
| - script: | | ||
| node common/scripts/install-run-rush.js pack --verbose | ||
| displayName: "Pack libraries" | ||
|
|
||
| - ${{ if ne(parameters.PackageName,'')}}: | ||
| - script: | | ||
| node common/scripts/install-run-rush.js build --verbose --to ${{parameters.PackageName}} | ||
| displayName: "Build libraries" | ||
| - script: | | ||
| node common/scripts/install-run-rush.js pack --verbose --to ${{parameters.PackageName}} | ||
| displayName: "Pack libraries" | ||
|
|
||
| - task: CopyFiles@2 | ||
| inputs: | ||
| contents: "sdk/**/**/*.tgz" | ||
| targetFolder: $(Build.ArtifactStagingDirectory) | ||
| flattenFolders: true | ||
| displayName: "Copy packages" | ||
|
|
||
| - task: PublishPipelineArtifact@0 | ||
| condition: succeededOrFailed() | ||
| displayName: "Publish artifacts" | ||
| inputs: | ||
| artifactName: packages | ||
| targetPath: $(Build.ArtifactStagingDirectory) | ||
|
|
||
| - job: "Analyze" | ||
| variables: | ||
| - template: ../variables/globals.yml | ||
|
|
||
| pool: | ||
| vmImage: "ubuntu-16.04" | ||
|
|
||
| steps: | ||
| - task: UsePythonVersion@0 | ||
| displayName: "Use Python 3.6" | ||
| inputs: | ||
| versionSpec: "3.6" | ||
|
|
||
| - task: NodeTool@0 | ||
| inputs: | ||
| versionSpec: "$(NodeVersion)" | ||
| displayName: "Install Node.js $(NodeVersion)" | ||
|
|
||
| - script: | | ||
| pip install setuptools wheel | ||
| pip install doc-warden | ||
| ward scan -d $(Build.SourcesDirectory) -c $(Build.SourcesDirectory)/.docsettings.yml | ||
| displayName: "Verify Readmes" | ||
|
|
||
| - ${{ if eq(parameters.PackageName,'')}}: | ||
| - script: | | ||
| node common/scripts/install-run-rush.js install | ||
| node common/scripts/install-run-rush.js audit | ||
| condition: and(succeeded(), eq(variables['RunNpmAudit'], 'true')) | ||
| displayName: "Audit packages" | ||
|
|
||
| - ${{ if ne(parameters.PackageName,'')}}: | ||
| - script: | | ||
| node common/scripts/install-run-rush.js install | ||
| node common/scripts/install-run-rush.js audit --to ${{parameters.PackageName}} | ||
| condition: and(succeeded(), eq(variables['RunNpmAudit'], 'true')) | ||
| displayName: "Audit packages" | ||
|
|
||
| - task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0 | ||
| # ComponentGovernance is currently unable to run on pull requests of public projects. Running on non-PR | ||
| # builds should be sufficient. | ||
| condition: and(succeededOrFailed(), ne(variables['Build.Reason'], 'PullRequest')) | ||
| displayName: "Component Detection" | ||
|
|
||
| - job: "Test" | ||
|
|
||
| strategy: | ||
| matrix: | ||
| Linux_Node8: | ||
| OSName: "Linux" | ||
| OSVmImage: "ubuntu-16.04" | ||
| NodeVersion: "8.x" | ||
| Linux_Node10: | ||
| OSName: "Linux" | ||
| OSVmImage: "ubuntu-16.04" | ||
| NodeVersion: "10.x" | ||
| Linux_Node12: | ||
| OSName: "Linux" | ||
| OSVmImage: "ubuntu-16.04" | ||
| NodeVersion: "12.x" | ||
| macOS_Node8: | ||
| OSName: "macOS" | ||
| OSVmImage: "macOS-10.13" | ||
| NodeVersion: "8.x" | ||
| macOS_Node10: | ||
| OSName: "macOS" | ||
| OSVmImage: "macOS-10.13" | ||
| NodeVersion: "10.x" | ||
| macOS_Node12: | ||
| OSName: "macOS" | ||
| OSVmImage: "macOS-10.13" | ||
| NodeVersion: "12.x" | ||
| Windows_Node8: | ||
| OSName: "Windows" | ||
| OSVmImage: "vs2017-win2016" | ||
| NodeVersion: "8.x" | ||
| Windows_Node10: | ||
| OSName: "Windows" | ||
| OSVmImage: "vs2017-win2016" | ||
| NodeVersion: "10.x" | ||
| Windows_Node12: | ||
| OSName: "Windows" | ||
| OSVmImage: "vs2017-win2016" | ||
| NodeVersion: "12.x" | ||
|
|
||
| pool: | ||
| vmImage: "$(OSVmImage)" | ||
|
|
||
| steps: | ||
| - task: NodeTool@0 | ||
| inputs: | ||
| versionSpec: "$(NodeVersion)" | ||
| displayName: "Install Node.js $(NodeVersion)" | ||
|
|
||
| - script: | | ||
| node common/scripts/install-run-rush.js install | ||
| displayName: "Install dependencies" | ||
|
|
||
| # If there is no package name, then don't use the --to option. | ||
| - ${{ if eq(parameters.PackageName,'')}}: | ||
| - script: | | ||
| node common/scripts/install-run-rush.js build --verbose | ||
| displayName: 'Build libraries"' | ||
| - script: | | ||
| node common/scripts/install-run-rush.js build:test --verbose | ||
| displayName: "Build test assets" | ||
| - script: | | ||
| node common/scripts/install-run-rush.js unit-test --verbose | ||
| displayName: "Test libraries" | ||
|
|
||
| # On the other hand, if there is a PackageName, supply the --to option. | ||
| - ${{ if ne(parameters.PackageName,'')}}: | ||
| - script: | | ||
| node common/scripts/install-run-rush.js build --verbose --to ${{parameters.PackageName}} | ||
| displayName: 'Build libraries"' | ||
| - script: | | ||
| node common/scripts/install-run-rush.js build:test --verbose --to ${{parameters.PackageName}} | ||
| displayName: "Build test assets" | ||
| - script: | | ||
| node common/scripts/install-run-rush.js unit-test --verbose --to ${{parameters.PackageName}} | ||
| displayName: "Test libraries" | ||
|
|
||
| - task: PublishTestResults@2 | ||
| inputs: | ||
| testResultsFiles: "**/test-results.xml" | ||
| testRunTitle: "$(OSName) Node $(NodeVersion)" | ||
| condition: succeededOrFailed() | ||
| displayName: "Publish test results" | ||
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 |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| variables: | ||
| NodeVersion: '10.x' |
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 |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # DO NOT EDIT THIS FILE | ||
| # This file is generated automatically and any changes will be lost. | ||
|
|
||
| trigger: none | ||
|
|
||
| pr: | ||
| branches: | ||
| include: | ||
| - master | ||
| paths: | ||
| include: | ||
| - sdk/core/amqp-common/ | ||
|
|
||
| jobs: | ||
| - template: ../../../eng/pipelines/templates/jobs/archetype-sdk-client.yml | ||
| parameters: | ||
| PackageName: "@azure/amqp-common" |
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 |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # DO NOT EDIT THIS FILE | ||
| # This file is generated automatically and any changes will be lost. | ||
|
|
||
| trigger: none | ||
|
|
||
| pr: | ||
| branches: | ||
| include: | ||
| - master | ||
| paths: | ||
| include: | ||
| - sdk/cosmosdb/cosmos/ | ||
|
|
||
| jobs: | ||
| - template: ../../../eng/pipelines/templates/jobs/archetype-sdk-client.yml | ||
| parameters: | ||
| PackageName: "@azure/cosmos" |
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 |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # DO NOT EDIT THIS FILE | ||
| # This file is generated automatically and any changes will be lost. | ||
|
|
||
| trigger: none | ||
|
|
||
| pr: | ||
| branches: | ||
| include: | ||
| - master | ||
| paths: | ||
| include: | ||
| - sdk/eventhub/event-hubs/ | ||
|
|
||
| jobs: | ||
| - template: ../../../eng/pipelines/templates/jobs/archetype-sdk-client.yml | ||
| parameters: | ||
| PackageName: "@azure/event-hubs" |
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 |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # DO NOT EDIT THIS FILE | ||
| # This file is generated automatically and any changes will be lost. | ||
|
|
||
| trigger: none | ||
|
|
||
| pr: | ||
| branches: | ||
| include: | ||
| - master | ||
| paths: | ||
| include: | ||
| - sdk/eventhub/event-processor-host/ | ||
|
|
||
| jobs: | ||
| - template: ../../../eng/pipelines/templates/jobs/archetype-sdk-client.yml | ||
| parameters: | ||
| PackageName: "@azure/event-processor-host" |
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 |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # DO NOT EDIT THIS FILE | ||
| # This file is generated automatically and any changes will be lost. | ||
|
|
||
| trigger: none | ||
|
|
||
| pr: | ||
| branches: | ||
| include: | ||
| - master | ||
| paths: | ||
| include: | ||
| - sdk/keyvault/keyvault/ | ||
|
|
||
| jobs: | ||
| - template: ../../../eng/pipelines/templates/jobs/archetype-sdk-client.yml | ||
| parameters: | ||
| PackageName: "@azure/keyvault" |
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 |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # DO NOT EDIT THIS FILE | ||
| # This file is generated automatically and any changes will be lost. | ||
|
|
||
| trigger: none | ||
|
|
||
| pr: | ||
| branches: | ||
| include: | ||
| - master | ||
| paths: | ||
| include: | ||
| - sdk/servicebus/service-bus/ | ||
|
|
||
| jobs: | ||
| - template: ../../../eng/pipelines/templates/jobs/archetype-sdk-client.yml | ||
| parameters: | ||
| - PackageName: "@azure/service-bus" |
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 |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # DO NOT EDIT THIS FILE | ||
| # This file is generated automatically and any changes will be lost. | ||
|
|
||
| trigger: none | ||
|
|
||
| pr: | ||
| branches: | ||
| include: | ||
| - master | ||
| paths: | ||
| include: | ||
| - sdk/storage/storage-blob/ | ||
|
|
||
| jobs: | ||
| - template: ../../../eng/pipelines/templates/jobs/archetype-sdk-client.yml | ||
| parameters: | ||
| PackageName: "@azure/storage-blob" |
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 |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # DO NOT EDIT THIS FILE | ||
| # This file is generated automatically and any changes will be lost. | ||
|
|
||
| trigger: none | ||
|
|
||
| pr: | ||
| branches: | ||
| include: | ||
| - master | ||
| paths: | ||
| include: | ||
| - sdk/storage/storage-file/ | ||
|
|
||
| jobs: | ||
| - template: ../../../eng/pipelines/templates/jobs/archetype-sdk-client.yml | ||
| parameters: | ||
| PackageName: "@azure/storage-file" |
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 |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # DO NOT EDIT THIS FILE | ||
| # This file is generated automatically and any changes will be lost. | ||
|
|
||
| trigger: none | ||
|
|
||
| pr: | ||
| branches: | ||
| include: | ||
| - master | ||
| paths: | ||
| include: | ||
| - sdk/storage/storage-queue/ | ||
|
|
||
| jobs: | ||
| - template: ../../../eng/pipelines/templates/jobs/archetype-sdk-client.yml | ||
| parameters: | ||
| PackageName: "@azure/storage-queue" |
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.