2019-06-14 17:29:20 +02:00
|
|
|
name: Release_$(Build.SourceBranchName)_$(SourceTag)_$(Date:yyyyMMdd)$(Rev:.rr)
|
|
|
|
|
2019-07-13 11:46:16 +02:00
|
|
|
variables:
|
|
|
|
__RealSigningCertificate: 'Python Software Foundation'
|
2019-06-14 17:29:20 +02:00
|
|
|
# QUEUE TIME VARIABLES
|
|
|
|
# GitRemote: python
|
|
|
|
# SourceTag:
|
|
|
|
# DoPGO: true
|
|
|
|
# SigningCertificate: 'Python Software Foundation'
|
|
|
|
# SigningDescription: 'Built: $(Build.BuildNumber)'
|
|
|
|
# DoLayout: true
|
|
|
|
# DoMSIX: true
|
|
|
|
# DoNuget: true
|
|
|
|
# DoEmbed: true
|
|
|
|
# DoMSI: true
|
|
|
|
# DoPublish: false
|
2019-07-13 11:46:16 +02:00
|
|
|
# PyDotOrgUsername: ''
|
|
|
|
# PyDotOrgServer: ''
|
|
|
|
# BuildToPublish: ''
|
2019-06-14 17:29:20 +02:00
|
|
|
|
|
|
|
trigger: none
|
|
|
|
pr: none
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- stage: Build
|
|
|
|
displayName: Build binaries
|
2019-07-13 11:46:16 +02:00
|
|
|
condition: and(succeeded(), not(variables['BuildToPublish']))
|
2019-06-14 17:29:20 +02:00
|
|
|
jobs:
|
|
|
|
- template: windows-release/stage-build.yml
|
|
|
|
|
|
|
|
- stage: Sign
|
|
|
|
displayName: Sign binaries
|
|
|
|
dependsOn: Build
|
2019-07-13 11:46:16 +02:00
|
|
|
condition: and(succeeded(), not(variables['BuildToPublish']))
|
2019-06-14 17:29:20 +02:00
|
|
|
jobs:
|
|
|
|
- template: windows-release/stage-sign.yml
|
|
|
|
|
|
|
|
- stage: Layout
|
|
|
|
displayName: Generate layouts
|
|
|
|
dependsOn: Sign
|
2019-07-13 11:46:16 +02:00
|
|
|
condition: and(succeeded(), not(variables['BuildToPublish']))
|
2019-06-14 17:29:20 +02:00
|
|
|
jobs:
|
|
|
|
- template: windows-release/stage-layout-full.yml
|
|
|
|
- template: windows-release/stage-layout-embed.yml
|
|
|
|
- template: windows-release/stage-layout-nuget.yml
|
|
|
|
|
|
|
|
- stage: Pack
|
|
|
|
dependsOn: Layout
|
2019-07-13 11:46:16 +02:00
|
|
|
condition: and(succeeded(), not(variables['BuildToPublish']))
|
2019-06-14 17:29:20 +02:00
|
|
|
jobs:
|
|
|
|
- template: windows-release/stage-pack-nuget.yml
|
|
|
|
|
|
|
|
- stage: Test
|
|
|
|
dependsOn: Pack
|
2019-07-13 11:46:16 +02:00
|
|
|
condition: and(succeeded(), not(variables['BuildToPublish']))
|
2019-06-14 17:29:20 +02:00
|
|
|
jobs:
|
|
|
|
- template: windows-release/stage-test-embed.yml
|
|
|
|
- template: windows-release/stage-test-nuget.yml
|
|
|
|
|
|
|
|
- stage: Layout_MSIX
|
|
|
|
displayName: Generate MSIX layouts
|
|
|
|
dependsOn: Sign
|
2019-07-13 11:46:16 +02:00
|
|
|
condition: and(succeeded(), and(eq(variables['DoMSIX'], 'true'), not(variables['BuildToPublish'])))
|
2019-06-14 17:29:20 +02:00
|
|
|
jobs:
|
|
|
|
- template: windows-release/stage-layout-msix.yml
|
|
|
|
|
|
|
|
- stage: Pack_MSIX
|
|
|
|
displayName: Package MSIX
|
|
|
|
dependsOn: Layout_MSIX
|
2019-07-13 11:46:16 +02:00
|
|
|
condition: and(succeeded(), not(variables['BuildToPublish']))
|
2019-06-14 17:29:20 +02:00
|
|
|
jobs:
|
|
|
|
- template: windows-release/stage-pack-msix.yml
|
|
|
|
|
|
|
|
- stage: Build_MSI
|
|
|
|
displayName: Build MSI installer
|
|
|
|
dependsOn: Sign
|
2019-07-13 11:46:16 +02:00
|
|
|
condition: and(succeeded(), and(eq(variables['DoMSI'], 'true'), not(variables['BuildToPublish'])))
|
2019-06-14 17:29:20 +02:00
|
|
|
jobs:
|
|
|
|
- template: windows-release/stage-msi.yml
|
|
|
|
|
|
|
|
- stage: Test_MSI
|
|
|
|
displayName: Test MSI installer
|
|
|
|
dependsOn: Build_MSI
|
2019-07-13 11:46:16 +02:00
|
|
|
condition: and(succeeded(), not(variables['BuildToPublish']))
|
2019-06-14 17:29:20 +02:00
|
|
|
jobs:
|
|
|
|
- template: windows-release/stage-test-msi.yml
|
|
|
|
|
|
|
|
- stage: PublishPyDotOrg
|
|
|
|
displayName: Publish to python.org
|
|
|
|
dependsOn: ['Test_MSI', 'Test']
|
2019-07-13 11:46:16 +02:00
|
|
|
condition: and(succeeded(), and(eq(variables['DoPublish'], 'true'), not(variables['BuildToPublish'])))
|
2019-06-14 17:29:20 +02:00
|
|
|
jobs:
|
|
|
|
- template: windows-release/stage-publish-pythonorg.yml
|
|
|
|
|
|
|
|
- stage: PublishNuget
|
|
|
|
displayName: Publish to nuget.org
|
|
|
|
dependsOn: Test
|
2019-07-13 11:46:16 +02:00
|
|
|
condition: and(succeeded(), and(eq(variables['DoPublish'], 'true'), not(variables['BuildToPublish'])))
|
2019-06-14 17:29:20 +02:00
|
|
|
jobs:
|
|
|
|
- template: windows-release/stage-publish-nugetorg.yml
|
|
|
|
|
|
|
|
- stage: PublishStore
|
|
|
|
displayName: Publish to Store
|
|
|
|
dependsOn: Pack_MSIX
|
2019-07-13 11:46:16 +02:00
|
|
|
condition: and(succeeded(), and(eq(variables['DoPublish'], 'true'), not(variables['BuildToPublish'])))
|
|
|
|
jobs:
|
|
|
|
- template: windows-release/stage-publish-store.yml
|
|
|
|
|
|
|
|
|
|
|
|
- stage: PublishExistingPyDotOrg
|
|
|
|
displayName: Publish existing build to python.org
|
|
|
|
dependsOn: []
|
|
|
|
condition: and(succeeded(), and(eq(variables['DoPublish'], 'true'), variables['BuildToPublish']))
|
|
|
|
jobs:
|
|
|
|
- template: windows-release/stage-publish-pythonorg.yml
|
|
|
|
|
|
|
|
- stage: PublishExistingNuget
|
|
|
|
displayName: Publish existing build to nuget.org
|
|
|
|
dependsOn: []
|
|
|
|
condition: and(succeeded(), and(eq(variables['DoPublish'], 'true'), variables['BuildToPublish']))
|
|
|
|
jobs:
|
|
|
|
- template: windows-release/stage-publish-nugetorg.yml
|
|
|
|
|
|
|
|
- stage: PublishExistingStore
|
|
|
|
displayName: Publish existing build to Store
|
|
|
|
dependsOn: []
|
|
|
|
condition: and(succeeded(), and(eq(variables['DoPublish'], 'true'), variables['BuildToPublish']))
|
2019-06-14 17:29:20 +02:00
|
|
|
jobs:
|
|
|
|
- template: windows-release/stage-publish-store.yml
|