mirror of
https://github.com/python/cpython.git
synced 2024-11-23 01:45:25 +08:00
CI: Remove docs build from Azure Pipelines (#105823)
This commit is contained in:
parent
0bffe1acd7
commit
101d5ec7d7
@ -14,20 +14,6 @@ jobs:
|
||||
- template: ./prebuild-checks.yml
|
||||
|
||||
|
||||
- job: Docs_PR
|
||||
displayName: Docs PR
|
||||
dependsOn: Prebuild
|
||||
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['docs.run'], 'true'))
|
||||
|
||||
pool:
|
||||
vmImage: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
- template: ./docs-steps.yml
|
||||
parameters:
|
||||
upload: true
|
||||
|
||||
|
||||
- job: macOS_CI_Tests
|
||||
displayName: macOS CI Tests
|
||||
dependsOn: Prebuild
|
||||
|
@ -1,47 +0,0 @@
|
||||
parameters:
|
||||
latex: false
|
||||
upload: false
|
||||
|
||||
steps:
|
||||
- checkout: self
|
||||
clean: true
|
||||
fetchDepth: 5
|
||||
|
||||
- task: UsePythonVersion@0
|
||||
displayName: 'Use Python 3.6 or later'
|
||||
inputs:
|
||||
versionSpec: '>=3.6'
|
||||
|
||||
- script: python -m pip install -r requirements.txt
|
||||
workingDirectory: '$(build.sourcesDirectory)/Doc'
|
||||
displayName: 'Install build dependencies'
|
||||
|
||||
- ${{ if ne(parameters.latex, 'true') }}:
|
||||
- script: make check html PYTHON=python
|
||||
workingDirectory: '$(build.sourcesDirectory)/Doc'
|
||||
displayName: 'Build documentation'
|
||||
|
||||
- ${{ if eq(parameters.latex, 'true') }}:
|
||||
- script: sudo apt-get update && sudo apt-get install -qy --force-yes texlive-full
|
||||
displayName: 'Install LaTeX'
|
||||
|
||||
- script: make dist PYTHON=python SPHINXBUILD='python -m sphinx' BLURB='python -m blurb'
|
||||
workingDirectory: '$(build.sourcesDirectory)/Doc'
|
||||
displayName: 'Build documentation'
|
||||
|
||||
- ${{ if eq(parameters.upload, 'true') }}:
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: 'Publish docs'
|
||||
|
||||
inputs:
|
||||
PathToPublish: '$(build.sourcesDirectory)/Doc/build'
|
||||
ArtifactName: docs
|
||||
publishLocation: Container
|
||||
|
||||
- ${{ if eq(parameters.latex, 'true') }}:
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: 'Publish dist'
|
||||
inputs:
|
||||
PathToPublish: '$(build.sourcesDirectory)/Doc/dist'
|
||||
ArtifactName: docs_dist
|
||||
publishLocation: Container
|
@ -14,18 +14,6 @@ jobs:
|
||||
- template: ./prebuild-checks.yml
|
||||
|
||||
|
||||
- job: Docs_PR
|
||||
displayName: Docs PR
|
||||
dependsOn: Prebuild
|
||||
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['docs.run'], 'true'))
|
||||
|
||||
pool:
|
||||
vmImage: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
- template: ./docs-steps.yml
|
||||
|
||||
|
||||
- job: macOS_PR_Tests
|
||||
displayName: macOS PR Tests
|
||||
dependsOn: Prebuild
|
||||
|
@ -11,18 +11,6 @@ steps:
|
||||
displayName: Fetch comparison tree
|
||||
condition: and(succeeded(), variables['System.PullRequest.TargetBranch'])
|
||||
|
||||
- script: |
|
||||
if ! git diff --name-only $(diffTarget) | grep -qE '(\.rst$|^Doc|^Misc)'
|
||||
then
|
||||
echo "No docs were updated: docs.run=false"
|
||||
echo "##vso[task.setvariable variable=run;isOutput=true]false"
|
||||
else
|
||||
echo "Docs were updated: docs.run=true"
|
||||
echo "##vso[task.setvariable variable=run;isOutput=true]true"
|
||||
fi
|
||||
displayName: Detect documentation changes
|
||||
name: docs
|
||||
|
||||
- script: |
|
||||
if ! git diff --name-only $(diffTarget) | grep -qvE '(\.rst$|^Doc|^Misc)'
|
||||
then
|
||||
|
Loading…
Reference in New Issue
Block a user