1variables: 2 coverage: false 3 4pr: ['main', '3.10', '3.9', '3.8', '3.7'] 5 6jobs: 7- job: Prebuild 8 displayName: Pre-build checks 9 10 pool: 11 vmImage: ubuntu-20.04 12 13 steps: 14 - template: ./prebuild-checks.yml 15 16 17- job: Docs_PR 18 displayName: Docs PR 19 dependsOn: Prebuild 20 condition: and(succeeded(), eq(dependencies.Prebuild.outputs['docs.run'], 'true')) 21 22 pool: 23 vmImage: ubuntu-20.04 24 25 steps: 26 - template: ./docs-steps.yml 27 28 29- job: macOS_PR_Tests 30 displayName: macOS PR Tests 31 dependsOn: Prebuild 32 #condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true')) 33 # bpo-39837: macOS tests on Azure Pipelines are disabled 34 condition: false 35 36 variables: 37 testRunTitle: '$(system.pullRequest.TargetBranch)-macos' 38 testRunPlatform: macos 39 40 pool: 41 vmImage: macos-10.15 42 43 steps: 44 - template: ./macos-steps.yml 45 parameters: 46 targetBranch: $(System.PullRequest.TargetBranch) 47 48 49- job: Ubuntu_PR_Tests 50 displayName: Ubuntu PR Tests 51 dependsOn: Prebuild 52 condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true')) 53 54 pool: 55 vmImage: ubuntu-20.04 56 57 variables: 58 testRunTitle: '$(system.pullRequest.TargetBranch)-linux' 59 testRunPlatform: linux 60 openssl_version: 1.1.1n 61 62 steps: 63 - template: ./posix-steps.yml 64 parameters: 65 dependencies: apt 66 67 68- job: Ubuntu_Coverage_PR_Tests 69 displayName: Ubuntu PR Tests (coverage) 70 dependsOn: Prebuild 71 condition: | 72 and( 73 and( 74 succeeded(), 75 eq(variables['coverage'], 'true') 76 ), 77 eq(dependencies.Prebuild.outputs['tests.run'], 'true') 78 ) 79 80 pool: 81 vmImage: ubuntu-20.04 82 83 variables: 84 testRunTitle: '$(Build.SourceBranchName)-linux-coverage' 85 testRunPlatform: linux-coverage 86 openssl_version: 1.1.1n 87 88 steps: 89 - template: ./posix-steps.yml 90 parameters: 91 dependencies: apt 92 coverage: true 93 94 95- job: Windows_PR_Tests 96 displayName: Windows PR Tests 97 dependsOn: Prebuild 98 condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true')) 99 100 pool: 101 vmImage: windows-2019 102 103 strategy: 104 matrix: 105 win32: 106 arch: win32 107 buildOpt: '-p Win32' 108 testRunTitle: '$(System.PullRequest.TargetBranch)-win32' 109 testRunPlatform: win32 110 win64: 111 arch: amd64 112 buildOpt: '-p x64' 113 testRunTitle: '$(System.PullRequest.TargetBranch)-win64' 114 testRunPlatform: win64 115 winarm64: 116 arch: arm64 117 buildOpt: '-p arm64' 118 maxParallel: 4 119 120 steps: 121 - template: ./windows-steps.yml 122 parameters: 123 targetBranch: $(System.PullRequest.TargetBranch) 124