Skip to content

Commit

Permalink
Separate build and test into stages for cosmos ci (Azure#20034)
Browse files Browse the repository at this point in the history
  • Loading branch information
benbp committed Mar 22, 2021
1 parent 5423e12 commit 2f56ba6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion eng/pipelines/templates/stages/archetype-java-release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
parameters:
- name: DependsOn
type: string
type: object
- name: ServiceDirectory
type: string
- name: SDKType
Expand Down
3 changes: 2 additions & 1 deletion eng/pipelines/templates/stages/archetype-sdk-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ stages:
- ${{if and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['System.TeamProject'], 'internal'))}}:
- template: archetype-java-release.yml
parameters:
DependsOn: Build
DependsOn:
- Build
ServiceDirectory: ${{ parameters.ServiceDirectory }}
SDKType: ${{ parameters.SDKType }}
Artifacts: ${{ parameters.Artifacts }}
Expand Down
10 changes: 8 additions & 2 deletions eng/pipelines/templates/stages/cosmos-sdk-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ stages:
- template: ../steps/install-reporting-tools.yml
MatrixConfigs:
- Name: Cosmos_ci_test
Path: eng/pipelines/templates/stages/platform-matrix.cosmos.json
Path: eng/pipelines/templates/stages/platform-matrix.json
Selection: sparse
NonSparseParameters: Agent
GenerateVMJobs: true
Expand All @@ -48,6 +48,10 @@ stages:
- TestOptions=.*/-Punit
- AZURE_TEST.*=.*/

- stage: TestEmulator
displayName: Test Emulator
dependsOn: []
jobs:
- template: /eng/common/pipelines/templates/jobs/archetype-sdk-tests-generate.yml
parameters:
JobTemplatePath: /eng/pipelines/templates/jobs/live.tests.yml
Expand Down Expand Up @@ -103,7 +107,9 @@ stages:
- ${{if and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['System.TeamProject'], 'internal'))}}:
- template: archetype-java-release.yml
parameters:
DependsOn: Build
DependsOn:
- Build
- TestEmulator
ServiceDirectory: ${{parameters.ServiceDirectory}}
SDKType: ${{parameters.SDKType}}
Artifacts: ${{parameters.Artifacts}}
Expand Down

0 comments on commit 2f56ba6

Please sign in to comment.