2019-11-22 02:58:32 -05:00
|
|
|
.check_doc_links_template: &check_doc_links_template
|
|
|
|
stage: post_deploy
|
2020-02-17 23:08:22 -05:00
|
|
|
image: $ESP_IDF_DOC_ENV_IMAGE
|
2019-11-22 02:58:32 -05:00
|
|
|
tags: [ "build", "amd64", "internet" ]
|
|
|
|
only:
|
2020-10-21 22:32:54 -04:00
|
|
|
refs:
|
|
|
|
- master
|
|
|
|
- /^release\/v/
|
|
|
|
- /^v\d+\.\d+(\.\d+)?($|-)/
|
|
|
|
variables:
|
|
|
|
- $BOT_TRIGGER_WITH_LABEL == null
|
2019-11-22 02:58:32 -05:00
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
paths:
|
|
|
|
- docs/_build/*/*/*.txt
|
2020-07-23 06:42:55 -04:00
|
|
|
- docs/_build/*/*/linkcheck/*.txt
|
2019-11-22 02:58:32 -05:00
|
|
|
expire_in: 1 week
|
|
|
|
allow_failure: true
|
|
|
|
dependencies: []
|
|
|
|
script:
|
|
|
|
- cd docs
|
2020-02-18 23:24:59 -05:00
|
|
|
- ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh -p 3.6.10 pip install -r requirements.txt
|
2021-03-15 23:28:26 -04:00
|
|
|
# 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; }
|
2019-11-22 02:58:32 -05:00
|
|
|
|
|
|
|
check_doc_links_en_esp32:
|
|
|
|
extends: .check_doc_links_template
|
|
|
|
variables:
|
|
|
|
DOCLANG: "en"
|
|
|
|
DOCTGT: "esp32"
|
|
|
|
|
|
|
|
check_doc_links_en_esp32s2:
|
|
|
|
extends: .check_doc_links_template
|
|
|
|
variables:
|
|
|
|
DOCLANG: "en"
|
|
|
|
DOCTGT: "esp32s2"
|
|
|
|
|
|
|
|
check_doc_links_zh_CN_esp32:
|
|
|
|
extends: .check_doc_links_template
|
|
|
|
variables:
|
|
|
|
DOCLANG: "zh_CN"
|
|
|
|
DOCTGT: "esp32"
|
|
|
|
|
|
|
|
check_doc_links_zh_CN_esp32s2:
|
|
|
|
extends: .check_doc_links_template
|
|
|
|
variables:
|
|
|
|
DOCLANG: "zh_CN"
|
|
|
|
DOCTGT: "esp32s2"
|