2019-01-22 18:49:52 +00:00
|
|
|
variables:
|
|
|
|
coverage: false
|
|
|
|
|
2020-08-07 22:22:02 +00:00
|
|
|
pr: ['master', '3.9', '3.8', '3.7']
|
2019-01-22 18:49:52 +00:00
|
|
|
|
2018-09-24 11:44:50 +00:00
|
|
|
jobs:
|
|
|
|
- job: Prebuild
|
|
|
|
displayName: Pre-build checks
|
|
|
|
|
|
|
|
pool:
|
2020-08-07 22:22:02 +00:00
|
|
|
vmImage: ubuntu-18.04
|
2018-09-24 11:44:50 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- template: ./prebuild-checks.yml
|
|
|
|
|
|
|
|
|
|
|
|
- job: Docs_PR
|
|
|
|
displayName: Docs PR
|
|
|
|
dependsOn: Prebuild
|
|
|
|
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['docs.run'], 'true'))
|
|
|
|
|
|
|
|
pool:
|
2020-08-07 22:22:02 +00:00
|
|
|
vmImage: ubuntu-18.04
|
2018-09-24 11:44:50 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- template: ./docs-steps.yml
|
|
|
|
|
|
|
|
|
|
|
|
- job: macOS_PR_Tests
|
|
|
|
displayName: macOS PR Tests
|
|
|
|
dependsOn: Prebuild
|
2020-03-07 00:11:47 +00:00
|
|
|
#condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
|
|
|
|
# bpo-39837: macOS tests on Azure Pipelines are disabled
|
|
|
|
condition: false
|
2018-09-24 11:44:50 +00:00
|
|
|
|
|
|
|
variables:
|
|
|
|
testRunTitle: '$(system.pullRequest.TargetBranch)-macos'
|
|
|
|
testRunPlatform: macos
|
|
|
|
|
|
|
|
pool:
|
2019-09-10 15:53:03 +00:00
|
|
|
vmImage: macos-10.14
|
2018-09-24 11:44:50 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- template: ./macos-steps.yml
|
|
|
|
parameters:
|
|
|
|
targetBranch: $(System.PullRequest.TargetBranch)
|
|
|
|
|
|
|
|
|
|
|
|
- job: Ubuntu_PR_Tests
|
|
|
|
displayName: Ubuntu PR Tests
|
|
|
|
dependsOn: Prebuild
|
|
|
|
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
|
|
|
|
|
|
|
|
pool:
|
2020-08-07 22:22:02 +00:00
|
|
|
vmImage: ubuntu-18.04
|
2018-09-24 11:44:50 +00:00
|
|
|
|
|
|
|
variables:
|
|
|
|
testRunTitle: '$(system.pullRequest.TargetBranch)-linux'
|
|
|
|
testRunPlatform: linux
|
2020-06-12 20:46:36 +00:00
|
|
|
openssl_version: 1.1.1g
|
2018-09-24 11:44:50 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- template: ./posix-steps.yml
|
|
|
|
parameters:
|
2019-01-22 18:49:52 +00:00
|
|
|
dependencies: apt
|
|
|
|
|
|
|
|
|
|
|
|
- job: Ubuntu_Coverage_PR_Tests
|
|
|
|
displayName: Ubuntu PR Tests (coverage)
|
|
|
|
dependsOn: Prebuild
|
|
|
|
condition: |
|
|
|
|
and(
|
|
|
|
and(
|
|
|
|
succeeded(),
|
|
|
|
eq(variables['coverage'], 'true')
|
|
|
|
),
|
|
|
|
eq(dependencies.Prebuild.outputs['tests.run'], 'true')
|
|
|
|
)
|
|
|
|
|
|
|
|
pool:
|
2020-08-07 22:22:02 +00:00
|
|
|
vmImage: ubuntu-18.04
|
2019-01-22 18:49:52 +00:00
|
|
|
|
|
|
|
variables:
|
|
|
|
testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
|
|
|
|
testRunPlatform: linux-coverage
|
2020-06-12 20:46:36 +00:00
|
|
|
openssl_version: 1.1.1g
|
2019-01-22 18:49:52 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- template: ./posix-steps.yml
|
|
|
|
parameters:
|
|
|
|
dependencies: apt
|
|
|
|
coverage: true
|
2018-09-24 11:44:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
- job: Windows_PR_Tests
|
|
|
|
displayName: Windows PR Tests
|
|
|
|
dependsOn: Prebuild
|
|
|
|
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
|
|
|
|
|
|
|
|
pool:
|
2019-09-10 15:53:03 +00:00
|
|
|
vmImage: windows-2019
|
2018-09-24 11:44:50 +00:00
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
win32:
|
|
|
|
arch: win32
|
|
|
|
buildOpt:
|
|
|
|
testRunTitle: '$(System.PullRequest.TargetBranch)-win32'
|
|
|
|
testRunPlatform: win32
|
|
|
|
win64:
|
|
|
|
arch: amd64
|
|
|
|
buildOpt: '-p x64'
|
|
|
|
testRunTitle: '$(System.PullRequest.TargetBranch)-win64'
|
|
|
|
testRunPlatform: win64
|
2019-11-20 17:30:47 +00:00
|
|
|
winarm64:
|
|
|
|
arch: arm64
|
|
|
|
buildOpt: '-p arm64'
|
|
|
|
maxParallel: 4
|
2018-09-24 11:44:50 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- template: ./windows-steps.yml
|
|
|
|
parameters:
|
|
|
|
targetBranch: $(System.PullRequest.TargetBranch)
|