Skip to content

Commit

Permalink
Analyze dependencies during the build
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Siegel committed Aug 7, 2019
1 parent a8faa8b commit 564b412
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

| Component | Build Status |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Client Libraries | [![Build Status](https://dev.azure.com/azure-sdk/public/_apis/build/status/614?branchName=master)](https://dev.azure.com/azure-sdk/public/_build/latest?definitionId=614&branchName=master) [![Dependencies](https://img.shields.io/badge/dependencies-analyzed-blue.svg)](https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-js/dependencies/dependencies.html) |
| Management Libraries | [![Build Status](https://dev.azure.com/azure-sdk/public/_apis/build/status/138?branchName=master)](https://dev.azure.com/azure-sdk/public/_build/latest?definitionId=138&branchName=master) |
| Client Libraries | [![Build Status](https://dev.azure.com/azure-sdk/public/_apis/build/status/614?branchName=master)](https://dev.azure.com/azure-sdk/public/_build/latest?definitionId=614&branchName=master) |

This repository contains official JavaScript libraries and TypeScript definitions for Azure services. For documentation go to [Azure SDK for JavaScript documentation](https://aka.ms/js-docs).

Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ trigger: none
pr: none

jobs:
- template: ../../eng/pipelines/templates/jobs/archetype-sdk-client.yml
- template: templates/jobs/archetype-sdk-client.yml
parameters:
ServiceDirectory: $(ServiceDirectory)
14 changes: 12 additions & 2 deletions eng/pipelines/templates/jobs/archetype-sdk-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,19 @@ jobs:
ward scan -d $(Build.SourcesDirectory) -c $(Build.SourcesDirectory)/.docsettings.yml
displayName: "Verify Readmes"
- script: |
npm ci
workingDirectory: $(System.DefaultWorkingDirectory)/eng/tools/analyze-deps
displayName: "Install tool dependencies"
- script: |
node index.js --verbose --out "$(Build.ArtifactStagingDirectory)/dependencies.html"
workingDirectory: $(System.DefaultWorkingDirectory)/eng/tools/analyze-deps
displayName: "Analyze library dependencies"
- script: |
node common/scripts/install-run-rush.js install
displayName: "Install dependencies"
displayName: "Install library dependencies"
- script: |
node common/scripts/install-run-rush.js lint $(GeneratedPackageTargets)
Expand All @@ -87,7 +97,7 @@ jobs:

- task: PublishPipelineArtifact@1
condition: succeededOrFailed()
displayName: "Publish lint reports"
displayName: "Publish Report Artifacts"
inputs:
artifactName: reports
path: $(Build.ArtifactStagingDirectory)
Expand Down

0 comments on commit 564b412

Please sign in to comment.