mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-20 00:36:01 -04:00
CI: Use smaller docker image for documentation build
This commit is contained in:
parent
ec22b4991b
commit
95d0afbe69
@ -48,7 +48,7 @@ variables:
|
|||||||
|
|
||||||
# Docker images
|
# Docker images
|
||||||
BOT_DOCKER_IMAGE_TAG: ":latest"
|
BOT_DOCKER_IMAGE_TAG: ":latest"
|
||||||
ESP_IDF_DOC_ENV_IMAGE: "$CI_DOCKER_REGISTRY/esp-idf-doc-env:v4.4-1-v1"
|
ESP_IDF_DOC_ENV_IMAGE: "$CI_DOCKER_REGISTRY/esp-idf-doc-env:v4.4-1-v2"
|
||||||
ESP_ENV_IMAGE: "$CI_DOCKER_REGISTRY/esp-env:v4.4-1"
|
ESP_ENV_IMAGE: "$CI_DOCKER_REGISTRY/esp-env:v4.4-1"
|
||||||
AFL_FUZZER_TEST_IMAGE: "$CI_DOCKER_REGISTRY/afl-fuzzer-test:v4.4-1-1"
|
AFL_FUZZER_TEST_IMAGE: "$CI_DOCKER_REGISTRY/afl-fuzzer-test:v4.4-1-1"
|
||||||
CLANG_STATIC_ANALYSIS_IMAGE: "${CI_DOCKER_REGISTRY}/clang-static-analysis:v4.4-1-1"
|
CLANG_STATIC_ANALYSIS_IMAGE: "${CI_DOCKER_REGISTRY}/clang-static-analysis:v4.4-1-1"
|
||||||
|
@ -56,14 +56,14 @@ check_docs_lang_sync:
|
|||||||
.build_docs_template:
|
.build_docs_template:
|
||||||
image: $ESP_IDF_DOC_ENV_IMAGE
|
image: $ESP_IDF_DOC_ENV_IMAGE
|
||||||
variables:
|
variables:
|
||||||
PYTHON_VER: 3.6.10
|
PYTHON_VER: 3.6.13
|
||||||
tags:
|
tags:
|
||||||
- build_docs
|
- build_docs
|
||||||
dependencies: []
|
dependencies: []
|
||||||
script:
|
script:
|
||||||
- cd docs
|
- cd docs
|
||||||
- ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh -p 3.6.10 pip install -r requirements.txt
|
- python -m pip install -r requirements.txt
|
||||||
- ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh -p 3.6.10 ./build_docs.py -bs $DOC_BUILDERS -l $DOCLANG -t $DOCTGT build
|
- python ./build_docs.py -bs $DOC_BUILDERS -l $DOCLANG -t $DOCTGT build
|
||||||
parallel:
|
parallel:
|
||||||
matrix:
|
matrix:
|
||||||
- DOCLANG: ["en", "zh_CN"]
|
- DOCLANG: ["en", "zh_CN"]
|
||||||
@ -76,8 +76,8 @@ check_docs_gh_links:
|
|||||||
- .doc-rules:build:docs
|
- .doc-rules:build:docs
|
||||||
script:
|
script:
|
||||||
- cd docs
|
- cd docs
|
||||||
- ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh -p 3.6.10 pip install -r requirements.txt
|
- python -m pip install -r requirements.txt
|
||||||
- ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh -p 3.6.10 ./build_docs.py gh-linkcheck
|
- python ./build_docs.py gh-linkcheck
|
||||||
|
|
||||||
# stage: build_doc
|
# stage: build_doc
|
||||||
# Add this stage to let the build_docs job run in parallel with build
|
# Add this stage to let the build_docs job run in parallel with build
|
||||||
@ -154,7 +154,7 @@ build_docs_pdf:
|
|||||||
- .before_script_no_sync_submodule
|
- .before_script_no_sync_submodule
|
||||||
image: $ESP_IDF_DOC_ENV_IMAGE
|
image: $ESP_IDF_DOC_ENV_IMAGE
|
||||||
variables:
|
variables:
|
||||||
PYTHON_VER: 3.6.10
|
PYTHON_VER: 3.6.13
|
||||||
stage: test_deploy
|
stage: test_deploy
|
||||||
tags:
|
tags:
|
||||||
- deploy
|
- deploy
|
||||||
@ -166,7 +166,7 @@ build_docs_pdf:
|
|||||||
script:
|
script:
|
||||||
- add_doc_server_ssh_keys $DOCS_DEPLOY_PRIVATEKEY $DOCS_DEPLOY_SERVER $DOCS_DEPLOY_SERVER_USER
|
- add_doc_server_ssh_keys $DOCS_DEPLOY_PRIVATEKEY $DOCS_DEPLOY_SERVER $DOCS_DEPLOY_SERVER_USER
|
||||||
- export GIT_VER=$(git describe --always)
|
- export GIT_VER=$(git describe --always)
|
||||||
- ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh -p 3.6.10 ${IDF_PATH}/tools/ci/deploy_docs.py
|
- python ${IDF_PATH}/tools/ci/deploy_docs.py
|
||||||
|
|
||||||
# stage: test_deploy
|
# stage: test_deploy
|
||||||
deploy_docs_preview:
|
deploy_docs_preview:
|
||||||
@ -225,6 +225,6 @@ check_doc_links:
|
|||||||
allow_failure: true
|
allow_failure: true
|
||||||
script:
|
script:
|
||||||
- cd docs
|
- cd docs
|
||||||
- ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh -p 3.6.10 pip install -r requirements.txt
|
- python -m pip install -r requirements.txt
|
||||||
# At the moment this check will always fail due to multiple known limitations, ignore result
|
# At the moment this check will always fail due to multiple known limitations, ignore result
|
||||||
- ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh -p 3.6.10 ./build_docs.py -l $DOCLANG -t $DOCTGT linkcheck || { echo "THERE ARE ISSUES DUE TO KNOWN LIMITATIONS, PLEASE FIX THEM. Nowadays we're ignored them to pass pipeline."; true; }
|
- python ./build_docs.py -l $DOCLANG -t $DOCTGT linkcheck || { echo "THERE ARE ISSUES DUE TO KNOWN LIMITATIONS, PLEASE FIX THEM. Nowadays we're ignored them to pass pipeline."; true; }
|
||||||
|
@ -306,7 +306,7 @@ test_docs:
|
|||||||
extends: .host_test_template
|
extends: .host_test_template
|
||||||
image: $ESP_IDF_DOC_ENV_IMAGE
|
image: $ESP_IDF_DOC_ENV_IMAGE
|
||||||
variables:
|
variables:
|
||||||
PYTHON_VER: 3.6.10
|
PYTHON_VER: 3.6.13
|
||||||
artifacts:
|
artifacts:
|
||||||
when: on_failure
|
when: on_failure
|
||||||
paths:
|
paths:
|
||||||
|
Loading…
Reference in New Issue
Block a user