post_check.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # copy from .gitlab-ci.yml as anchor is not global
  2. .show_submodule_urls: &show_submodule_urls |
  3. git config --get-regexp '^submodule\..*\.url$' || true
  4. check_submodule_sync:
  5. extends: .check_job_template
  6. stage: post_check
  7. tags:
  8. - github_sync
  9. retry: 2
  10. variables:
  11. GIT_STRATEGY: clone
  12. SUBMODULES_TO_FETCH: "none"
  13. PUBLIC_IDF_URL: "https://github.com/espressif/esp-idf.git"
  14. before_script: []
  15. after_script: []
  16. script:
  17. - git submodule deinit --force .
  18. # setting the default remote URL to the public one, to resolve relative location URLs
  19. - git config remote.origin.url ${PUBLIC_IDF_URL}
  20. # check if all submodules are correctly synced to public repostory
  21. - git submodule init
  22. - *show_submodule_urls
  23. - git submodule update --recursive
  24. - echo "IDF was cloned from ${PUBLIC_IDF_URL} completely"
  25. check_ut_cmake_make:
  26. extends: .check_job_template_with_filter
  27. stage: post_check
  28. image: $CI_DOCKER_REGISTRY/esp32-ci-env$BOT_DOCKER_IMAGE_TAG
  29. tags:
  30. - build
  31. except:
  32. - master
  33. - /^release\/v/
  34. - /^v\d+\.\d+(\.\d+)?($|-)/
  35. dependencies: []
  36. script:
  37. - tools/ci/check_ut_cmake_make.sh
  38. check_artifacts_expire_time:
  39. extends: .check_job_template
  40. stage: post_check
  41. script:
  42. # check if we have set expire time for all artifacts
  43. - python tools/ci/check_artifacts_expire_time.py
  44. check_pipeline_triggered_by_label:
  45. extends: .check_job_template
  46. stage: post_check
  47. only:
  48. variables:
  49. - $BOT_TRIGGER_WITH_LABEL
  50. script:
  51. # If the pipeline is triggered with label, the pipeline will only succeeded if "regular_test" label is added.
  52. # We want to make sure some jobs are always executed to detect regression.
  53. - test "$BOT_LABEL_REGULAR_TEST" = "true" || { echo "CI can only pass if 'regular_test' label is included"; exit -1; }
  54. check_commit_msg:
  55. extends: .check_job_template
  56. stage: post_check
  57. script:
  58. - git status
  59. - git log -n10 --oneline
  60. # commit start with "WIP: " need to be squashed before merge
  61. - 'git log --pretty=%s master.. -- | grep "^WIP: " && exit 1 || exit 0'