mirror of https://github.com/python/cpython
gh-109408: Remove Ubuntu unit tests from Azure Pipelines (#109452)
This commit is contained in:
parent
add16f1a5e
commit
a75daed7e0
|
@ -11,25 +11,6 @@ jobs:
|
||||||
- template: ./prebuild-checks.yml
|
- template: ./prebuild-checks.yml
|
||||||
|
|
||||||
|
|
||||||
- job: Ubuntu_CI_Tests
|
|
||||||
displayName: Ubuntu CI Tests
|
|
||||||
dependsOn: Prebuild
|
|
||||||
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
|
|
||||||
|
|
||||||
pool:
|
|
||||||
vmImage: ubuntu-22.04
|
|
||||||
|
|
||||||
variables:
|
|
||||||
testRunTitle: '$(build.sourceBranchName)-linux'
|
|
||||||
testRunPlatform: linux
|
|
||||||
openssl_version: 1.1.1u
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- template: ./posix-steps.yml
|
|
||||||
parameters:
|
|
||||||
dependencies: apt
|
|
||||||
|
|
||||||
|
|
||||||
- job: Windows_CI_Tests
|
- job: Windows_CI_Tests
|
||||||
displayName: Windows CI Tests
|
displayName: Windows CI Tests
|
||||||
dependsOn: Prebuild
|
dependsOn: Prebuild
|
||||||
|
|
|
@ -1,9 +1,3 @@
|
||||||
parameters:
|
|
||||||
sudo_dependencies: sudo
|
|
||||||
dependencies: apt
|
|
||||||
patchcheck: true
|
|
||||||
xvfb: true
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- checkout: self
|
- checkout: self
|
||||||
clean: true
|
clean: true
|
||||||
|
@ -13,7 +7,7 @@ steps:
|
||||||
- script: sudo setfacl -Rb /home/vsts
|
- script: sudo setfacl -Rb /home/vsts
|
||||||
displayName: 'Workaround ACL issue'
|
displayName: 'Workaround ACL issue'
|
||||||
|
|
||||||
- script: ${{ parameters.sudo_dependencies }} ./.azure-pipelines/posix-deps-${{ parameters.dependencies }}.sh $(openssl_version)
|
- script: sudo ./.azure-pipelines/posix-deps-apt.sh $(openssl_version)
|
||||||
displayName: 'Install dependencies'
|
displayName: 'Install dependencies'
|
||||||
|
|
||||||
- script: ./configure --with-pydebug
|
- script: ./configure --with-pydebug
|
||||||
|
@ -25,27 +19,8 @@ steps:
|
||||||
- script: make pythoninfo
|
- script: make pythoninfo
|
||||||
displayName: 'Display build info'
|
displayName: 'Display build info'
|
||||||
|
|
||||||
- script: $COMMAND buildbottest TESTOPTS="-j4 -uall,-cpu --junit-xml=$(build.binariesDirectory)/test-results.xml"
|
- script: |
|
||||||
displayName: 'Tests'
|
git fetch origin
|
||||||
env:
|
./python Tools/patchcheck/patchcheck.py --ci true
|
||||||
${{ if eq(parameters.xvfb, 'true') }}:
|
displayName: 'Run patchcheck.py'
|
||||||
COMMAND: xvfb-run make
|
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
|
||||||
${{ if ne(parameters.xvfb, 'true') }}:
|
|
||||||
COMMAND: make
|
|
||||||
|
|
||||||
- ${{ if eq(parameters.patchcheck, 'true') }}:
|
|
||||||
- script: |
|
|
||||||
git fetch origin
|
|
||||||
./python Tools/patchcheck/patchcheck.py --ci true
|
|
||||||
displayName: 'Run patchcheck.py'
|
|
||||||
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
|
|
||||||
|
|
||||||
|
|
||||||
- task: PublishTestResults@2
|
|
||||||
displayName: 'Publish Test Results'
|
|
||||||
inputs:
|
|
||||||
testResultsFiles: '$(build.binariesDirectory)/test-results.xml'
|
|
||||||
mergeTestResults: true
|
|
||||||
testRunTitle: $(testRunTitle)
|
|
||||||
platform: $(testRunPlatform)
|
|
||||||
condition: succeededOrFailed()
|
|
||||||
|
|
|
@ -11,8 +11,8 @@ jobs:
|
||||||
- template: ./prebuild-checks.yml
|
- template: ./prebuild-checks.yml
|
||||||
|
|
||||||
|
|
||||||
- job: Ubuntu_PR_Tests
|
- job: Ubuntu_Patchcheck
|
||||||
displayName: Ubuntu PR Tests
|
displayName: Ubuntu patchcheck
|
||||||
dependsOn: Prebuild
|
dependsOn: Prebuild
|
||||||
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
|
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
|
||||||
|
|
||||||
|
@ -26,8 +26,6 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- template: ./posix-steps.yml
|
- template: ./posix-steps.yml
|
||||||
parameters:
|
|
||||||
dependencies: apt
|
|
||||||
|
|
||||||
|
|
||||||
- job: Windows_PR_Tests
|
- job: Windows_PR_Tests
|
||||||
|
|
Loading…
Reference in New Issue