mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
ci(docs): revert d98e77a4a7
to simplify CI
This commit is contained in:
@ -6,9 +6,9 @@ stages:
|
|||||||
- pre_check
|
- pre_check
|
||||||
- build
|
- build
|
||||||
- assign_test
|
- assign_test
|
||||||
|
- build_doc
|
||||||
- target_test
|
- target_test
|
||||||
- host_test
|
- host_test
|
||||||
- build_doc
|
|
||||||
- test_deploy
|
- test_deploy
|
||||||
- deploy
|
- deploy
|
||||||
- post_deploy
|
- post_deploy
|
||||||
|
@ -37,25 +37,16 @@
|
|||||||
.if-dev-push: &if-dev-push
|
.if-dev-push: &if-dev-push
|
||||||
if: '$CI_COMMIT_REF_NAME != "master" && $CI_COMMIT_BRANCH !~ /^release\/v/ && $CI_COMMIT_TAG !~ /^v\d+\.\d+(\.\d+)?($|-)/ && $CI_COMMIT_TAG !~ /^qa-test/ && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "merge_request_event")'
|
if: '$CI_COMMIT_REF_NAME != "master" && $CI_COMMIT_BRANCH !~ /^release\/v/ && $CI_COMMIT_TAG !~ /^v\d+\.\d+(\.\d+)?($|-)/ && $CI_COMMIT_TAG !~ /^qa-test/ && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "merge_request_event")'
|
||||||
|
|
||||||
.if-schedule: &if-schedule
|
|
||||||
if: '$CI_PIPELINE_SOURCE == "schedule"'
|
|
||||||
|
|
||||||
.doc-rules:build:docs-full:
|
.doc-rules:build:docs-full:
|
||||||
rules:
|
rules:
|
||||||
- <<: *if-qa-test-tag
|
- <<: *if-qa-test-tag
|
||||||
when: never
|
when: never
|
||||||
- <<: *if-schedule
|
- <<: *if-protected
|
||||||
- <<: *if-label-build_docs
|
- <<: *if-label-build_docs
|
||||||
- <<: *if-label-docs_full
|
- <<: *if-label-docs_full
|
||||||
- <<: *if-dev-push
|
- <<: *if-dev-push
|
||||||
changes: *patterns-docs-full
|
changes: *patterns-docs-full
|
||||||
|
|
||||||
.doc-rules:build:docs-full-prod:
|
|
||||||
rules:
|
|
||||||
- <<: *if-qa-test-tag
|
|
||||||
when: never
|
|
||||||
- <<: *if-protected-no_label
|
|
||||||
|
|
||||||
.doc-rules:build:docs-partial:
|
.doc-rules:build:docs-partial:
|
||||||
rules:
|
rules:
|
||||||
- <<: *if-qa-test-tag
|
- <<: *if-qa-test-tag
|
||||||
@ -92,13 +83,14 @@ check_docs_lang_sync:
|
|||||||
stage: build_doc
|
stage: build_doc
|
||||||
tags:
|
tags:
|
||||||
- build_docs
|
- build_docs
|
||||||
|
needs:
|
||||||
|
- job: fast_template_app
|
||||||
|
artifacts: false
|
||||||
|
optional: true
|
||||||
script:
|
script:
|
||||||
- if [ -n "${BREATHE_ALT_INSTALL_URL}" ]; then pip uninstall -y breathe && pip install -U ${BREATHE_ALT_INSTALL_URL}; fi
|
- if [ -n "${BREATHE_ALT_INSTALL_URL}" ]; then pip uninstall -y breathe && pip install -U ${BREATHE_ALT_INSTALL_URL}; fi
|
||||||
- cd docs
|
- cd docs
|
||||||
- build-docs -t $DOCTGT -bs $DOC_BUILDERS -l $DOCLANG build
|
- build-docs -t $DOCTGT -bs $DOC_BUILDERS -l $DOCLANG build
|
||||||
artifacts:
|
|
||||||
expire_in: 4 days
|
|
||||||
when: always
|
|
||||||
parallel:
|
parallel:
|
||||||
matrix:
|
matrix:
|
||||||
- DOCLANG: ["en", "zh_CN"]
|
- DOCLANG: ["en", "zh_CN"]
|
||||||
@ -119,26 +111,12 @@ build_docs_html_full:
|
|||||||
extends:
|
extends:
|
||||||
- .build_docs_template
|
- .build_docs_template
|
||||||
- .doc-rules:build:docs-full
|
- .doc-rules:build:docs-full
|
||||||
needs:
|
|
||||||
- job: fast_template_app
|
|
||||||
artifacts: false
|
|
||||||
optional: true
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- docs/_build/*/*/*.txt
|
|
||||||
- docs/_build/*/*/html/*
|
|
||||||
variables:
|
|
||||||
DOC_BUILDERS: "html"
|
|
||||||
|
|
||||||
build_docs_html_full_prod:
|
|
||||||
extends:
|
|
||||||
- .build_docs_template
|
|
||||||
- .doc-rules:build:docs-full-prod
|
|
||||||
dependencies: [] # Stop build_docs jobs from downloading all previous job's artifacts
|
|
||||||
artifacts:
|
artifacts:
|
||||||
|
when: always
|
||||||
paths:
|
paths:
|
||||||
- docs/_build/*/*/*.txt
|
- docs/_build/*/*/*.txt
|
||||||
- docs/_build/*/*/html/*
|
- docs/_build/*/*/html/*
|
||||||
|
expire_in: 4 days
|
||||||
variables:
|
variables:
|
||||||
DOC_BUILDERS: "html"
|
DOC_BUILDERS: "html"
|
||||||
|
|
||||||
@ -146,14 +124,12 @@ build_docs_html_partial:
|
|||||||
extends:
|
extends:
|
||||||
- .build_docs_template
|
- .build_docs_template
|
||||||
- .doc-rules:build:docs-partial
|
- .doc-rules:build:docs-partial
|
||||||
needs:
|
|
||||||
- job: fast_template_app
|
|
||||||
artifacts: false
|
|
||||||
optional: true
|
|
||||||
artifacts:
|
artifacts:
|
||||||
|
when: always
|
||||||
paths:
|
paths:
|
||||||
- docs/_build/*/*/*.txt
|
- docs/_build/*/*/*.txt
|
||||||
- docs/_build/*/*/html/*
|
- docs/_build/*/*/html/*
|
||||||
|
expire_in: 4 days
|
||||||
variables:
|
variables:
|
||||||
DOC_BUILDERS: "html"
|
DOC_BUILDERS: "html"
|
||||||
parallel:
|
parallel:
|
||||||
@ -167,26 +143,12 @@ build_docs_pdf:
|
|||||||
extends:
|
extends:
|
||||||
- .build_docs_template
|
- .build_docs_template
|
||||||
- .doc-rules:build:docs-full
|
- .doc-rules:build:docs-full
|
||||||
needs:
|
|
||||||
- job: fast_template_app
|
|
||||||
artifacts: false
|
|
||||||
optional: true
|
|
||||||
allow_failure: true # TODO IDFCI-2216
|
|
||||||
artifacts:
|
artifacts:
|
||||||
|
when: always
|
||||||
paths:
|
paths:
|
||||||
- docs/_build/*/*/latex/*
|
- docs/_build/*/*/latex/*
|
||||||
variables:
|
expire_in: 4 days
|
||||||
DOC_BUILDERS: "latex"
|
|
||||||
|
|
||||||
build_docs_pdf_prod:
|
|
||||||
extends:
|
|
||||||
- .build_docs_template
|
|
||||||
- .doc-rules:build:docs-full-prod
|
|
||||||
dependencies: [] # Stop build_docs jobs from downloading all previous job's artifacts
|
|
||||||
allow_failure: true # TODO IDFCI-2216
|
allow_failure: true # TODO IDFCI-2216
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- docs/_build/*/*/latex/*
|
|
||||||
variables:
|
variables:
|
||||||
DOC_BUILDERS: "latex"
|
DOC_BUILDERS: "latex"
|
||||||
|
|
||||||
@ -234,12 +196,13 @@ deploy_docs_production:
|
|||||||
# The DOCS_PROD_* variables used by this job are "Protected" so these branches must all be marked "Protected" in Gitlab settings
|
# The DOCS_PROD_* variables used by this job are "Protected" so these branches must all be marked "Protected" in Gitlab settings
|
||||||
extends:
|
extends:
|
||||||
- .deploy_docs_template
|
- .deploy_docs_template
|
||||||
- .doc-rules:build:docs-full-prod
|
rules:
|
||||||
|
- <<: *if-protected-no_label
|
||||||
stage: post_deploy
|
stage: post_deploy
|
||||||
dependencies: # set dependencies to null to avoid missing artifacts issue
|
dependencies: # set dependencies to null to avoid missing artifacts issue
|
||||||
needs: # ensure runs after push_to_github succeeded
|
needs: # ensure runs after push_to_github succeeded
|
||||||
- build_docs_html_full_prod
|
- build_docs_html_full
|
||||||
- build_docs_pdf_prod
|
- build_docs_pdf
|
||||||
- job: push_to_github
|
- job: push_to_github
|
||||||
artifacts: false
|
artifacts: false
|
||||||
variables:
|
variables:
|
||||||
@ -254,16 +217,19 @@ deploy_docs_production:
|
|||||||
check_doc_links:
|
check_doc_links:
|
||||||
extends:
|
extends:
|
||||||
- .build_docs_template
|
- .build_docs_template
|
||||||
- .doc-rules:build:docs-full-prod
|
rules:
|
||||||
|
- <<: *if-protected-no_label
|
||||||
stage: post_deploy
|
stage: post_deploy
|
||||||
needs:
|
needs:
|
||||||
- job: deploy_docs_production
|
- job: deploy_docs_production
|
||||||
artifacts: false
|
artifacts: false
|
||||||
tags: ["build", "amd64", "internet"]
|
tags: ["build", "amd64", "internet"]
|
||||||
artifacts:
|
artifacts:
|
||||||
|
when: always
|
||||||
paths:
|
paths:
|
||||||
- docs/_build/*/*/*.txt
|
- docs/_build/*/*/*.txt
|
||||||
- docs/_build/*/*/linkcheck/*.txt
|
- docs/_build/*/*/linkcheck/*.txt
|
||||||
|
expire_in: 1 week
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
script:
|
script:
|
||||||
- cd docs
|
- cd docs
|
||||||
|
Reference in New Issue
Block a user