mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-21 13:53:11 -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)'
|
name: '$(versionMajor).$(versionMinor).$(versionBuild).$(versionPatch)'
|
||||||
|
|
||||||
|
parameters:
|
||||||
|
buildPlatformList: [x64, x86, ARM, ARM64]
|
||||||
|
testPlatformList: [x64, x86]
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
repositories:
|
repositories:
|
||||||
- repository: 1esPipelines
|
- repository: 1esPipelines
|
||||||
|
@ -31,57 +35,42 @@ extends:
|
||||||
os: windows
|
os: windows
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- stage: Calculator
|
- stage: BuildStage
|
||||||
jobs:
|
jobs:
|
||||||
|
- ${{ each platform in parameters.buildPlatformList }}:
|
||||||
- template: /build/pipelines/templates/build-single-architecture.yaml@self
|
- template: /build/pipelines/templates/build-single-architecture.yaml@self
|
||||||
parameters:
|
parameters:
|
||||||
platform: x64
|
platform: ${{ platform }}
|
||||||
isReleaseBuild: true
|
isReleaseBuild: true
|
||||||
useReleaseAppxmanifest: true
|
useReleaseAppxmanifest: true
|
||||||
|
|
||||||
- template: /build/pipelines/templates/build-single-architecture.yaml@self
|
- stage: UnitTestStage
|
||||||
parameters:
|
dependsOn: BuildStage
|
||||||
platform: x86
|
jobs:
|
||||||
isReleaseBuild: true
|
- ${{ each platform in parameters.testPlatformList }}:
|
||||||
useReleaseAppxmanifest: true
|
|
||||||
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
|
|
||||||
|
|
||||||
- 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
|
- template: /build/pipelines/templates/run-unit-tests.yaml@self
|
||||||
parameters:
|
parameters:
|
||||||
platform: x64
|
platform: ${{ platform }}
|
||||||
|
|
||||||
- template: /build/pipelines/templates/run-unit-tests.yaml@self
|
- stage: UiTestStage
|
||||||
|
dependsOn: BuildStage
|
||||||
|
jobs:
|
||||||
|
- ${{ each platform in parameters.testPlatformList }}:
|
||||||
|
- template: /build/pipelines/templates/run-ui-tests.yaml@self
|
||||||
parameters:
|
parameters:
|
||||||
platform: x86
|
platform: ${{ platform }}
|
||||||
|
runsettingsFileName: CalculatorUITests.release.runsettings
|
||||||
|
|
||||||
|
- stage: PackageStage
|
||||||
|
dependsOn: [UnitTestStage, UiTestStage]
|
||||||
|
jobs:
|
||||||
- template: /build/pipelines/templates/package-msixbundle.yaml@self
|
- template: /build/pipelines/templates/package-msixbundle.yaml@self
|
||||||
parameters:
|
parameters:
|
||||||
signBundle: true
|
signBundle: true
|
||||||
createStoreBrokerPackages: true
|
createStoreBrokerPackages: true
|
||||||
|
|
||||||
|
- stage: PublishStage
|
||||||
|
dependsOn: PackageStage
|
||||||
|
jobs:
|
||||||
- template: /build/pipelines/templates/release-store.yaml@self
|
- template: /build/pipelines/templates/release-store.yaml@self
|
||||||
- template: /build/pipelines/templates/release-vpack.yaml@self
|
- template: /build/pipelines/templates/release-vpack.yaml@self
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue