post_deploy.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. .check_doc_links_template: &check_doc_links_template
  2. stage: post_deploy
  3. image: $ESP_IDF_DOC_ENV_IMAGE
  4. tags: [ "build", "amd64", "internet" ]
  5. only:
  6. refs:
  7. - master
  8. - /^release\/v/
  9. - /^v\d+\.\d+(\.\d+)?($|-)/
  10. variables:
  11. - $BOT_TRIGGER_WITH_LABEL == null
  12. artifacts:
  13. when: always
  14. paths:
  15. - docs/_build/*/*/*.txt
  16. - docs/_build/*/*/linkcheck/*.txt
  17. expire_in: 1 week
  18. allow_failure: true
  19. dependencies: []
  20. script:
  21. - cd docs
  22. - ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh -p 3.6.10 pip install -r requirements.txt
  23. # At the moment this check will always fail due to multiple known limitations, ignore result
  24. - ${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; }
  25. check_doc_links_en_esp32:
  26. extends: .check_doc_links_template
  27. variables:
  28. DOCLANG: "en"
  29. DOCTGT: "esp32"
  30. check_doc_links_en_esp32s2:
  31. extends: .check_doc_links_template
  32. variables:
  33. DOCLANG: "en"
  34. DOCTGT: "esp32s2"
  35. check_doc_links_zh_CN_esp32:
  36. extends: .check_doc_links_template
  37. variables:
  38. DOCLANG: "zh_CN"
  39. DOCTGT: "esp32"
  40. check_doc_links_zh_CN_esp32s2:
  41. extends: .check_doc_links_template
  42. variables:
  43. DOCLANG: "zh_CN"
  44. DOCTGT: "esp32s2"