|
20 | 20 | - 'typespec*'
|
21 | 21 |
|
22 | 22 | jobs:
|
23 |
| - - job: Build |
24 |
| - |
25 |
| - timeoutInMinutes: 60 |
26 |
| - |
27 |
| - variables: |
28 |
| - - template: /eng/pipelines/variables/globals.yml |
29 |
| - - template: /eng/pipelines/variables/image.yml |
30 |
| - |
31 |
| - pool: |
32 |
| - name: $(LINUXPOOL) |
33 |
| - image: $(LINUXVMIMAGE) |
34 |
| - os: linux |
35 |
| - |
36 |
| - steps: |
37 |
| - - checkout: self |
38 |
| - submodules: true |
39 |
| - |
40 |
| - - script: | |
41 |
| - git checkout . |
42 |
| - git apply ../core.diff --ignore-whitespace |
43 |
| - displayName: 'Patch core' |
44 |
| - workingDirectory: ./core |
45 |
| -
|
46 |
| - - task: NodeTool@0 |
47 |
| - displayName: 'Install Node.js $(NodeVersion)' |
48 |
| - inputs: |
49 |
| - versionSpec: '$(NodeVersion)' |
50 |
| - |
51 |
| - - template: /eng/pipelines/steps/cache-maven-repository.yml |
52 |
| - parameters: |
53 |
| - JobType: 'Autorest' |
54 |
| - |
55 |
| - - task: Maven@4 |
56 |
| - displayName: 'Build and Package' |
57 |
| - inputs: |
58 |
| - mavenPomFile: pom.xml |
59 |
| - goals: 'clean install' |
60 |
| - options: '$(DefaultOptions) -P local -T 1C' |
61 |
| - mavenOptions: '$(MemoryOptions) $(LoggingOptions)' |
62 |
| - javaHomeOption: 'JDKVersion' |
63 |
| - jdkVersionOption: $(JavaVersion) |
64 |
| - jdkArchitectureOption: 'x64' |
65 |
| - publishJUnitResults: false |
66 |
| - |
67 |
| - - script: | |
68 |
| - npm install -g autorest |
69 |
| - npm ci |
70 |
| - displayName: 'Prepare Environment for Generation' |
71 |
| -
|
72 |
| - - task: PowerShell@2 |
73 |
| - displayName: 'Generate Code' |
74 |
| - inputs: |
75 |
| - pwsh: true |
76 |
| - filePath: Generate.ps1 |
77 |
| - |
78 |
| - - script: | |
79 |
| - git status |
80 |
| - git diff --ignore-submodules |
81 |
| - displayName: 'Git Diff' |
82 |
| -
|
83 |
| - - script: | |
84 |
| - [ -z "`git status --ignore-submodules --porcelain`" ] |
85 |
| - displayName: 'Check no Diff' |
86 |
| -
|
87 |
| - - script: | |
88 |
| - npm run testserver-run & |
89 |
| - displayName: 'Start Testserver' |
90 |
| -
|
91 |
| - - task: Maven@4 |
92 |
| - displayName: 'Run Vanilla Tests' |
93 |
| - inputs: |
94 |
| - mavenPomFile: pom.xml |
95 |
| - goals: 'clean test' |
96 |
| - options: '$(DefaultOptions) -DtestVanilla -pl vanilla-tests -DtrimStackTrace=false' |
97 |
| - mavenOptions: '$(MemoryOptions) $(LoggingOptions)' |
98 |
| - javaHomeOption: 'JDKVersion' |
99 |
| - jdkVersionOption: $(JavaVersion) |
100 |
| - jdkArchitectureOption: 'x64' |
101 |
| - publishJUnitResults: false |
102 |
| - |
103 |
| - - task: PublishTestResults@2 |
104 |
| - inputs: |
105 |
| - mergeTestResults: true |
106 |
| - testRunTitle: 'vanilla-tests' |
107 |
| - searchFolder: '$(System.DefaultWorkingDirectory)/vanilla-tests/' |
108 |
| - condition: always() |
109 |
| - |
110 |
| - - task: Maven@4 |
111 |
| - displayName: 'Run Azure Tests' |
112 |
| - inputs: |
113 |
| - mavenPomFile: pom.xml |
114 |
| - goals: 'clean test' |
115 |
| - options: '$(DefaultOptions) -DtestAzure -pl azure-tests -DtrimStackTrace=false' |
116 |
| - mavenOptions: '$(MemoryOptions) $(LoggingOptions)' |
117 |
| - javaHomeOption: 'JDKVersion' |
118 |
| - jdkVersionOption: $(JavaVersion) |
119 |
| - jdkArchitectureOption: 'x64' |
120 |
| - publishJUnitResults: false |
121 |
| - |
122 |
| - - task: PublishTestResults@2 |
123 |
| - inputs: |
124 |
| - mergeTestResults: true |
125 |
| - testRunTitle: 'azure-tests' |
126 |
| - searchFolder: '$(System.DefaultWorkingDirectory)/azure-tests/' |
127 |
| - condition: always() |
128 |
| - |
129 |
| - - task: Maven@4 |
130 |
| - displayName: 'Run Protocol Tests' |
131 |
| - inputs: |
132 |
| - mavenPomFile: pom.xml |
133 |
| - goals: 'clean test' |
134 |
| - options: '$(DefaultOptions) -DtestProtocol -pl protocol-tests -DtrimStackTrace=false' |
135 |
| - mavenOptions: '$(MemoryOptions) $(LoggingOptions)' |
136 |
| - javaHomeOption: 'JDKVersion' |
137 |
| - jdkVersionOption: $(JavaVersion) |
138 |
| - jdkArchitectureOption: 'x64' |
139 |
| - publishJUnitResults: false |
140 |
| - |
141 |
| - - task: PublishTestResults@2 |
142 |
| - inputs: |
143 |
| - mergeTestResults: true |
144 |
| - testRunTitle: 'protocol-tests' |
145 |
| - searchFolder: '$(System.DefaultWorkingDirectory)/protocol-tests/' |
146 |
| - condition: always() |
147 |
| - |
148 |
| - - script: | |
149 |
| - npm run testserver-stop |
150 |
| - displayName: 'Stop Testserver' |
151 |
| -
|
152 |
| - - script: | |
153 |
| - cat coverage/report-vanilla.json || true |
154 |
| - cat coverage/report-azure.json || true |
155 |
| - cat coverage/report-dpg.json || true |
156 |
| - displayName: 'Display Coverage Data' |
157 |
| -
|
158 |
| - - task: Maven@4 |
159 |
| - displayName: 'Verify Javadoc of Protocol Tests' |
160 |
| - inputs: |
161 |
| - mavenPomFile: protocol-tests/pom.xml |
162 |
| - goals: 'javadoc:javadoc' |
163 |
| - options: '$(DefaultOptions)' |
164 |
| - mavenOptions: '$(MemoryOptions) $(LoggingOptions)' |
165 |
| - javaHomeOption: 'JDKVersion' |
166 |
| - jdkVersionOption: $(JavaVersion) |
167 |
| - jdkArchitectureOption: 'x64' |
168 |
| - publishJUnitResults: false |
169 |
| - |
170 |
| - - task: Maven@4 |
171 |
| - displayName: 'Run Protocol Resilience Tests' |
172 |
| - inputs: |
173 |
| - mavenPomFile: protocol-resilience-test/pom.xml |
174 |
| - goals: 'package revapi:check' |
175 |
| - options: '$(DefaultOptions)' |
176 |
| - mavenOptions: '$(MemoryOptions) $(LoggingOptions)' |
177 |
| - javaHomeOption: 'JDKVersion' |
178 |
| - jdkVersionOption: $(JavaVersion) |
179 |
| - jdkArchitectureOption: 'x64' |
180 |
| - publishJUnitResults: false |
181 |
| - |
182 |
| - - script: | |
183 |
| - ./protocol-sdk-integration-tests/test.py |
184 |
| - displayName: 'Run Protocol Test on SDK Integration' |
185 |
| -
|
186 |
| - - template: /eng/pipelines/steps/cleanup-maven-local-cache.yml |
| 23 | +- template: /eng/pipelines/jobs/build-autorest.yml |
0 commit comments