2019-06-28 12:39:21 -04:00
|
|
|
# copy from .gitlab-ci.yml as anchor is not global
|
|
|
|
.show_submodule_urls: &show_submodule_urls |
|
|
|
|
git config --get-regexp '^submodule\..*\.url$' || true
|
|
|
|
|
2020-09-26 23:20:53 -04:00
|
|
|
.post_check_base_template:
|
2019-11-12 02:59:11 -05:00
|
|
|
stage: post_check
|
2020-09-26 23:20:53 -04:00
|
|
|
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:
|
2020-09-28 02:27:10 -04:00
|
|
|
extends:
|
|
|
|
- .before_script_slim
|
|
|
|
- .post_check_job_template
|
2019-06-28 12:39:21 -04:00
|
|
|
tags:
|
|
|
|
- github_sync
|
|
|
|
retry: 2
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: clone
|
2019-11-28 04:08:25 -05:00
|
|
|
SUBMODULES_TO_FETCH: "none"
|
2019-06-28 12:39:21 -04:00
|
|
|
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}
|
2020-07-09 23:24:33 -04:00
|
|
|
# check if all submodules are correctly synced to public repository
|
2019-06-28 12:39:21 -04:00
|
|
|
- git submodule init
|
|
|
|
- *show_submodule_urls
|
|
|
|
- git submodule update --recursive
|
|
|
|
- echo "IDF was cloned from ${PUBLIC_IDF_URL} completely"
|
2020-07-29 01:13:51 -04:00
|
|
|
allow_failure: true # remove this line when esp32s3 support in esptool got merged into master
|
2019-06-28 12:39:21 -04:00
|
|
|
|
2019-11-12 02:59:11 -05:00
|
|
|
check_ut_cmake_make:
|
2020-09-26 23:20:53 -04:00
|
|
|
extends:
|
|
|
|
- .post_check_job_template_with_filter
|
2020-10-20 03:00:50 -04:00
|
|
|
- .rules:dev
|
2019-11-12 02:59:11 -05:00
|
|
|
tags:
|
|
|
|
- build
|
|
|
|
script:
|
|
|
|
- tools/ci/check_ut_cmake_make.sh
|
|
|
|
|
2019-06-28 12:39:21 -04:00
|
|
|
check_artifacts_expire_time:
|
2020-09-26 23:20:53 -04:00
|
|
|
extends: .post_check_job_template
|
2019-06-28 12:39:21 -04:00
|
|
|
script:
|
|
|
|
# check if we have set expire time for all artifacts
|
|
|
|
- python tools/ci/check_artifacts_expire_time.py
|
|
|
|
|
|
|
|
check_pipeline_triggered_by_label:
|
2020-09-26 23:20:53 -04:00
|
|
|
extends:
|
|
|
|
- .post_check_job_template
|
2020-10-20 03:00:50 -04:00
|
|
|
- .rules:dev
|
2019-06-28 12:39:21 -04:00
|
|
|
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; }
|
2019-11-12 02:59:11 -05:00
|
|
|
|
|
|
|
check_commit_msg:
|
2020-09-26 23:20:53 -04:00
|
|
|
extends: .post_check_job_template
|
2019-11-12 02:59:11 -05:00
|
|
|
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'
|