| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- # copy from .gitlab-ci.yml as anchor is not global
- .show_submodule_urls: &show_submodule_urls |
- git config --get-regexp '^submodule\..*\.url$' || true
- .post_check_base_template:
- stage: post_check
- image: $CI_DOCKER_REGISTRY/esp32-ci-env$BOT_DOCKER_IMAGE_TAG
- tags:
- - host_test
- dependencies: []
- .post_check_job_template:
- extends:
- - .post_check_base_template
- - .before_script_lesser_nofilter
- .post_check_job_template_with_filter:
- extends:
- - .post_check_base_template
- - .before_script_lesser
- check_submodule_sync:
- extends:
- - .before_script_slim
- - .post_check_job_template
- tags:
- - github_sync
- retry: 2
- variables:
- GIT_STRATEGY: clone
- SUBMODULES_TO_FETCH: "none"
- PUBLIC_IDF_URL: "https://github.com/espressif/esp-idf.git"
- script:
- - git submodule deinit --force .
- # setting the default remote URL to the public one, to resolve relative location URLs
- - git config remote.origin.url ${PUBLIC_IDF_URL}
- # check if all submodules are correctly synced to public repository
- - git submodule init
- - *show_submodule_urls
- - git submodule update --recursive
- - echo "IDF was cloned from ${PUBLIC_IDF_URL} completely"
- check_ut_cmake_make:
- extends:
- - .post_check_job_template_with_filter
- - .rules:dev
- tags:
- - build
- script:
- - tools/ci/check_ut_cmake_make.sh
- check_artifacts_expire_time:
- extends: .post_check_job_template
- script:
- # check if we have set expire time for all artifacts
- - python tools/ci/check_artifacts_expire_time.py
- check_pipeline_triggered_by_label:
- extends:
- - .post_check_job_template
- - .rules:dev
- script:
- # If the pipeline is triggered with label, the pipeline will only succeeded if "regular_test" label is added.
- # We want to make sure some jobs are always executed to detect regression.
- - test "$BOT_LABEL_REGULAR_TEST" = "true" || { echo "CI can only pass if 'regular_test' label is included"; exit -1; }
- check_commit_msg:
- extends: .post_check_job_template
- script:
- - git status
- - git log -n10 --oneline
- # commit start with "WIP: " need to be squashed before merge
- - 'git log --pretty=%s master.. -- | grep "^WIP: " && exit 1 || exit 0'
|