|
| 1 | +parameters: |
| 2 | + - name: SpecRepoCommit |
| 3 | + type: string |
| 4 | + default: 'ef166dcba5eca12026b6b0cdebec6b866ea7ca92' |
| 5 | + displayName: 'Spec Repo Commit Id' |
| 6 | + |
1 | 7 | trigger: |
2 | 8 | branches: |
3 | 9 | include: |
|
20 | 26 | - common/tools/dev-tool/ |
21 | 27 |
|
22 | 28 | jobs: |
23 | | - - job: 'DevTool' |
24 | | - displayName: 'Dev-tool validation' |
| 29 | + # - job: 'DevTool' |
| 30 | + # displayName: 'Dev-tool validation' |
| 31 | + |
| 32 | + # variables: |
| 33 | + # - template: /eng/pipelines/templates/variables/globals.yml |
| 34 | + # - template: /eng/pipelines/templates/variables/image.yml |
| 35 | + |
| 36 | + # pool: |
| 37 | + # name: $(LINUXPOOL) |
| 38 | + # demands: ImageOverride -equals $(LINUXVMIMAGE) |
| 39 | + |
| 40 | + # steps: |
| 41 | + # - template: /eng/pipelines/templates/steps/common.yml |
| 42 | + |
| 43 | + # - script: | |
| 44 | + # npm install -g pnpm |
| 45 | + # displayName: "Install Pnpm" |
| 46 | + |
| 47 | + # - script: | |
| 48 | + # pnpm install |
| 49 | + # displayName: "Install library dependencies" |
| 50 | + |
| 51 | + # - script: | |
| 52 | + # pnpm --filter @azure/dev-tool... build |
| 53 | + # displayName: "Build dev-tool" |
| 54 | + |
| 55 | + # - script: | |
| 56 | + # pnpm --filter @azure/dev-tool... check-format |
| 57 | + # displayName: "Check format for dev-tool" |
| 58 | + |
| 59 | + # - script: | |
| 60 | + # pnpm --filter @azure/dev-tool... lint |
| 61 | + # displayName: "Lint dev-tool" |
| 62 | + |
| 63 | + # - script: | |
| 64 | + # pnpm --filter @azure/dev-tool... test |
| 65 | + # displayName: "Run dev-tool unit tests" |
| 66 | + |
| 67 | + - job: 'SDKAutomation' |
| 68 | + displayName: 'SDK Automation validation' |
25 | 69 |
|
26 | 70 | variables: |
27 | | - - template: /eng/pipelines/templates/variables/globals.yml |
28 | 71 | - template: /eng/pipelines/templates/variables/image.yml |
| 72 | + - name: NodeVersion |
| 73 | + value: '22.13.x' |
| 74 | + - name: PythonVersion |
| 75 | + value: '3.13' |
29 | 76 |
|
30 | 77 | pool: |
31 | 78 | name: $(LINUXPOOL) |
32 | | - demands: ImageOverride -equals $(LINUXVMIMAGE) |
| 79 | + vmImage: $(LINUXVMIMAGE) |
| 80 | + os: linux |
33 | 81 |
|
34 | 82 | steps: |
35 | | - - template: /eng/pipelines/templates/steps/common.yml |
| 83 | + - checkout: none |
36 | 84 |
|
37 | | - - script: | |
38 | | - npm install -g pnpm |
39 | | - displayName: "Install Pnpm" |
| 85 | + - template: /eng/common/pipelines/templates/steps/sparse-checkout.yml |
| 86 | + parameters: |
| 87 | + Paths: |
| 88 | + - '/*' |
| 89 | + - '!sdk/**/test-recordings/*' |
| 90 | + - '!sdk/**/recordings/*' |
| 91 | + - '!sdk/**/SessionRecords/*' |
| 92 | + - '!sdk/**/session-records/*' |
| 93 | + Repositories: |
| 94 | + - Name: Azure/azure-rest-api-specs |
| 95 | + Commitish: main |
| 96 | + WorkingDirectory: $(System.DefaultWorkingDirectory)/azure-rest-api-specs |
| 97 | + - Name: Azure/azure-sdk-for-js |
| 98 | + Commitish: $(Build.SourceVersion) |
| 99 | + WorkingDirectory: $(System.DefaultWorkingDirectory)/azure-sdk-for-js |
| 100 | + SkipCheckoutNone: true |
40 | 101 |
|
41 | | - - script: | |
42 | | - pnpm install |
43 | | - displayName: "Install library dependencies" |
| 102 | + - task: NodeTool@0 |
| 103 | + inputs: |
| 104 | + versionSpec: $(NodeVersion) |
| 105 | + displayName: 'Install Node.js' |
44 | 106 |
|
45 | | - - script: | |
46 | | - pnpm --filter @azure/dev-tool... build |
47 | | - displayName: "Build dev-tool" |
48 | | -
|
49 | | - - script: | |
50 | | - pnpm --filter @azure/dev-tool... check-format |
51 | | - displayName: "Check format for dev-tool" |
52 | | -
|
53 | | - - script: | |
54 | | - pnpm --filter @azure/dev-tool... lint |
55 | | - displayName: "Lint dev-tool" |
| 107 | + - task: UsePythonVersion@0 |
| 108 | + inputs: |
| 109 | + versionSpec: $(PythonVersion) |
56 | 110 |
|
57 | 111 | - script: | |
58 | | - pnpm --filter @azure/dev-tool... test |
59 | | - displayName: "Run dev-tool unit tests" |
| 112 | + cd $(System.DefaultWorkingDirectory)/azure-rest-api-specs |
| 113 | + echo "##[group]Run npm ci" |
| 114 | + npm ci |
| 115 | + echo "##[endgroup]" |
| 116 | + node $(System.DefaultWorkingDirectory)/azure-rest-api-specs/eng/tools/spec-gen-sdk-runner/cmd/spec-gen-sdk-runner.js \ |
| 117 | + --scp $(System.DefaultWorkingDirectory)/azure-rest-api-specs \ |
| 118 | + --sdp $(System.DefaultWorkingDirectory)/azure-sdk-for-js \ |
| 119 | + --wf $(System.DefaultWorkingDirectory) \ |
| 120 | + --lang azure-sdk-for-js \ |
| 121 | + --commit $(SpecRepoCommit) \ |
| 122 | + --spec-repo-url https://github.com/Azure/azure-rest-api-specs \ |
| 123 | + --tsp-config-relative-path specification/widget/data-plane/WidgetAnalytics/tspconfig.yaml \ |
| 124 | + --api-version 2025-03-21-preview \ |
| 125 | + --sdk-release-type beta \ |
| 126 | + --rm local |
| 127 | + displayName: 'Generate for template/template SDK' |
0 commit comments