-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Use node 13 for CodeGeneration and merge pipelines #14989
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
Changes from 9 commits
36d1e72
ca7480a
3a243d4
8994690
ad748b6
653d33c
612c782
32ffd0a
e693c65
36ea7fd
39810ef
8a2f2af
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,17 @@ jobs: | |
| displayName: 'Use Python 3.6' | ||
| inputs: | ||
| versionSpec: '3.6' | ||
| - template: /eng/common/pipelines/templates/steps/verify-path-length.yml | ||
| parameters: | ||
| SourceDirectory: $(Build.SourcesDirectory) | ||
| - template: /eng/common/pipelines/templates/steps/verify-links.yml | ||
| parameters: | ||
| Directory: sdk/${{ parameters.ServiceDirectory }} | ||
| - script: | | ||
| pip install setuptools wheel | ||
| pip install doc-warden==$(DocWardenVersion) | ||
| ward scan -d $(Build.SourcesDirectory) -c $(Build.SourcesDirectory)/eng/.docsettings.yml | ||
| displayName: "Verify Readmes" | ||
| - template: /eng/common/pipelines/templates/steps/replace-relative-links.yml | ||
| parameters: | ||
| TargetFolder: '.' | ||
|
|
@@ -38,6 +49,13 @@ jobs: | |
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | ||
| DOTNET_CLI_TELEMETRY_OPTOUT: 1 | ||
| DOTNET_MULTILEVEL_LOOKUP: 0 | ||
| - task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0 | ||
| displayName: "Component Detection" | ||
| # ComponentGovernance is currently unable to run on pull requests of public projects. Running on | ||
| # scheduled builds should be good enough. | ||
| inputs: | ||
| ignoreDirectories: "sdk/storage/Azure.Storage.Common/swagger/Generator" | ||
| condition: and(succeededOrFailed(), ne(variables['Build.Reason'],'PullRequest')) | ||
| - task: PublishPipelineArtifact@1 | ||
| condition: succeeded() | ||
| inputs: | ||
|
|
@@ -49,41 +67,15 @@ jobs: | |
| Artifacts: ${{parameters.Artifacts}} | ||
| DocGenerationDir: "$(Build.SourcesDirectory)/doc/ApiDocGeneration" | ||
| LibType: 'client' | ||
| - job: "Analyze" | ||
pakrym marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| condition: ne(variables['Skip.Analyze'], true) | ||
| - job: VerifyGenerated | ||
|
||
| variables: | ||
| - template: ../variables/globals.yml | ||
| dependsOn: | ||
| - Build | ||
| pool: | ||
| vmImage: "windows-2019" | ||
| vmImage: ubuntu-18.04 | ||
| steps: | ||
| - task: UsePythonVersion@0 | ||
| displayName: "Use Python 3.6" | ||
| inputs: | ||
| versionSpec: "3.6" | ||
| - template: /eng/common/pipelines/templates/steps/verify-links.yml | ||
| parameters: | ||
| Directory: sdk/${{ parameters.ServiceDirectory }} | ||
| - script: | | ||
| pip install setuptools wheel | ||
| pip install doc-warden==$(DocWardenVersion) | ||
| ward scan -d $(Build.SourcesDirectory) -c $(Build.SourcesDirectory)/eng/.docsettings.yml | ||
| displayName: "Verify Readmes" | ||
| - template: /eng/common/pipelines/templates/steps/verify-path-length.yml | ||
| parameters: | ||
| SourceDirectory: $(Build.SourcesDirectory) | ||
| - task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0 | ||
| displayName: "Component Detection" | ||
| # ComponentGovernance is currently unable to run on pull requests of public projects. Running on | ||
| # scheduled builds should be good enough. | ||
| inputs: | ||
| ignoreDirectories: "sdk/storage/Azure.Storage.Common/swagger/Generator" | ||
| condition: and(succeededOrFailed(), ne(variables['Build.Reason'],'PullRequest')) | ||
| - task: NodeTool@0 | ||
| inputs: | ||
| # AutoRest doesn't work with versions 12.x | ||
| versionSpec: '10.15.0' | ||
| versionSpec: '13.13.0' | ||
| displayName: 'Install NodeJS' | ||
| - task: PowerShell@2 | ||
| displayName: "Verify generated code" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,4 +7,4 @@ param ( | |
|
|
||
| $servicesProj = Resolve-Path "$PSScriptRoot/../service.proj" | ||
|
|
||
| dotnet build /p:GenerateApiListingOnBuild=true /p:Configuration=Release /p:IncludeSamples=false /p:IncludeTests=false /p:Scope="$ServiceDirectory" /restore $servicesProj | ||
| dotnet build /p:GenerateApiListingOnBuild=true /p:SkipApiCompat=true /p:GeneratePackageOnBuild=false /p:Configuration=Release /p:IncludeSamples=false /p:IncludeTests=false /p:Scope="$ServiceDirectory" /restore $servicesProj | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Faster API export |
||
Uh oh!
There was an error while loading. Please reload this page.