Merge branch 'bugfix/build_docs_pdf_job_v4.2' into 'release/v4.2'

docs: seperate build_docs html and pdf CI jobs (Backport v4.2)

See merge request espressif/esp-idf!10549
This commit is contained in:
Anton Maklakov 2020-12-15 14:54:00 +08:00
commit 8c3526d91f
2 changed files with 32 additions and 27 deletions

View File

@ -212,7 +212,6 @@ build_test_apps_esp32s2:
paths:
- docs/_build/*/*/*.txt
- docs/_build/*/*/html/*
- docs/_build/*/*/latex/*
expire_in: 4 days
only:
variables:
@ -224,31 +223,39 @@ build_test_apps_esp32s2:
script:
- cd docs
- ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh -p 3.6.10 pip install -r requirements.txt
- ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh -p 3.6.10 ./build_docs.py -bs html latex -l $DOCLANG -t $DOCTGT build
- ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh -p 3.6.10 ./build_docs.py -bs html -l $DOCLANG -t $DOCTGT build
build_docs_en_esp32:
build_docs_html:
extends: .build_docs_template
variables:
DOCLANG: "en"
DOCTGT: "esp32"
parallel:
matrix:
- DOCLANG: ["en", "zh_CN"]
DOCTGT: ["esp32", "esp32s2"]
build_docs_en_esp32s2:
extends: .build_docs_template
variables:
DOCLANG: "en"
DOCTGT: "esp32s2"
build_docs_zh_CN_esp32:
extends: .build_docs_template
variables:
DOCLANG: "zh_CN"
DOCTGT: "esp32"
build_docs_zh_CN_esp32s2:
extends: .build_docs_template
variables:
DOCLANG: "zh_CN"
DOCTGT: "esp32s2"
build_docs_pdf:
stage: build
image: $ESP_IDF_DOC_ENV_IMAGE
tags:
- build_docs
artifacts:
when: always
paths:
- docs/_build/*/*/latex/*
expire_in: 4 days
rules:
- if: '$CI_COMMIT_REF_NAME == "master"'
- if: '$CI_COMMIT_REF_NAME =~ "/^release\/v/"'
- if: '$CI_COMMIT_REF_NAME =~ "/^v\d+\.\d+(\.\d+)?($|-)/"'
- if: $BOT_LABEL_BUILD_DOCS
dependencies: []
parallel:
matrix:
- DOCLANG: ["en", "zh_CN"]
DOCTGT: ["esp32", "esp32s2"]
script:
- cd docs
- ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh -p 3.6.10 pip install -r requirements.txt
- ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh -p 3.6.10 ./build_docs.py -bs latex -l $DOCLANG -t $DOCTGT build
test_build_system:
extends: .build_template

View File

@ -81,10 +81,8 @@ push_to_github:
- deploy
- shiny
dependencies:
- build_docs_en_esp32
- build_docs_en_esp32s2
- build_docs_zh_CN_esp32
- build_docs_zh_CN_esp32s2
- build_docs_html
- build_docs_pdf
variables:
DOCS_BUILD_DIR: "${IDF_PATH}/docs/_build/"
PYTHONUNBUFFERED: 1