post_deploy.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. .check_doc_links_template:
  2. extends: .rules:protected-no_label
  3. stage: post_deploy
  4. image: $ESP_IDF_DOC_ENV_IMAGE
  5. tags: [ "build", "amd64", "internet" ]
  6. needs: # ensure runs after push_to_github succeeded
  7. - build_docs_html
  8. - build_docs_pdf
  9. - push_to_github
  10. artifacts:
  11. when: always
  12. paths:
  13. - docs/_build/*/*/*.txt
  14. - docs/_build/*/*/linkcheck/*.txt
  15. expire_in: 1 week
  16. allow_failure: true
  17. dependencies: []
  18. script:
  19. - cd docs
  20. - ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh -p 3.6.10 pip install -r requirements.txt
  21. # At the moment this check will always fail due to multiple known limitations, ignore result
  22. - ${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; }
  23. check_doc_links_en_esp32:
  24. extends: .check_doc_links_template
  25. variables:
  26. DOCLANG: "en"
  27. DOCTGT: "esp32"
  28. check_doc_links_en_esp32s2:
  29. extends: .check_doc_links_template
  30. variables:
  31. DOCLANG: "en"
  32. DOCTGT: "esp32s2"
  33. check_doc_links_zh_CN_esp32:
  34. extends: .check_doc_links_template
  35. variables:
  36. DOCLANG: "zh_CN"
  37. DOCTGT: "esp32"
  38. check_doc_links_zh_CN_esp32s2:
  39. extends: .check_doc_links_template
  40. variables:
  41. DOCLANG: "zh_CN"
  42. DOCTGT: "esp32s2"