mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-21 05:43:10 -07:00
Collect jobs into stages
This commit is contained in:
parent
10df81d11c
commit
904c99438b
1 changed files with 32 additions and 43 deletions
|
@ -15,6 +15,10 @@ variables:
|
|||
|
||||
name: '$(versionMajor).$(versionMinor).$(versionBuild).$(versionPatch)'
|
||||
|
||||
parameters:
|
||||
buildPlatformList: [x64, x86, ARM, ARM64]
|
||||
testPlatformList: [x64, x86]
|
||||
|
||||
resources:
|
||||
repositories:
|
||||
- repository: 1esPipelines
|
||||
|
@ -31,57 +35,42 @@ extends:
|
|||
os: windows
|
||||
|
||||
stages:
|
||||
- stage: Calculator
|
||||
- stage: BuildStage
|
||||
jobs:
|
||||
- template: /build/pipelines/templates/build-single-architecture.yaml@self
|
||||
parameters:
|
||||
platform: x64
|
||||
isReleaseBuild: true
|
||||
useReleaseAppxmanifest: true
|
||||
- ${{ each platform in parameters.buildPlatformList }}:
|
||||
- template: /build/pipelines/templates/build-single-architecture.yaml@self
|
||||
parameters:
|
||||
platform: ${{ platform }}
|
||||
isReleaseBuild: true
|
||||
useReleaseAppxmanifest: true
|
||||
|
||||
- template: /build/pipelines/templates/build-single-architecture.yaml@self
|
||||
parameters:
|
||||
platform: x86
|
||||
isReleaseBuild: true
|
||||
useReleaseAppxmanifest: true
|
||||
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
|
||||
- stage: UnitTestStage
|
||||
dependsOn: BuildStage
|
||||
jobs:
|
||||
- ${{ each platform in parameters.testPlatformList }}:
|
||||
- template: /build/pipelines/templates/run-unit-tests.yaml@self
|
||||
parameters:
|
||||
platform: ${{ platform }}
|
||||
|
||||
- template: /build/pipelines/templates/build-single-architecture.yaml@self
|
||||
parameters:
|
||||
platform: ARM
|
||||
isReleaseBuild: true
|
||||
useReleaseAppxmanifest: true
|
||||
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
|
||||
|
||||
- template: /build/pipelines/templates/build-single-architecture.yaml@self
|
||||
parameters:
|
||||
platform: ARM64
|
||||
isReleaseBuild: true
|
||||
useReleaseAppxmanifest: true
|
||||
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
|
||||
|
||||
- template: /build/pipelines/templates/run-ui-tests.yaml@self
|
||||
parameters:
|
||||
platform: x64
|
||||
runsettingsFileName: CalculatorUITests.release.runsettings
|
||||
|
||||
- template: /build/pipelines/templates/run-ui-tests.yaml@self
|
||||
parameters:
|
||||
platform: x86
|
||||
runsettingsFileName: CalculatorUITests.release.runsettings
|
||||
|
||||
- template: /build/pipelines/templates/run-unit-tests.yaml@self
|
||||
parameters:
|
||||
platform: x64
|
||||
|
||||
- template: /build/pipelines/templates/run-unit-tests.yaml@self
|
||||
parameters:
|
||||
platform: x86
|
||||
- stage: UiTestStage
|
||||
dependsOn: BuildStage
|
||||
jobs:
|
||||
- ${{ each platform in parameters.testPlatformList }}:
|
||||
- template: /build/pipelines/templates/run-ui-tests.yaml@self
|
||||
parameters:
|
||||
platform: ${{ platform }}
|
||||
runsettingsFileName: CalculatorUITests.release.runsettings
|
||||
|
||||
- stage: PackageStage
|
||||
dependsOn: [UnitTestStage, UiTestStage]
|
||||
jobs:
|
||||
- template: /build/pipelines/templates/package-msixbundle.yaml@self
|
||||
parameters:
|
||||
signBundle: true
|
||||
createStoreBrokerPackages: true
|
||||
|
||||
- stage: PublishStage
|
||||
dependsOn: PackageStage
|
||||
jobs:
|
||||
- template: /build/pipelines/templates/release-store.yaml@self
|
||||
- template: /build/pipelines/templates/release-vpack.yaml@self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue