mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
ci: move check_submodule_sync to pre_check stage
This commit is contained in:
+4
-4
@@ -16,6 +16,10 @@ workflow:
|
|||||||
# Place the default settings in `.gitlab/ci/common.yml` instead
|
# Place the default settings in `.gitlab/ci/common.yml` instead
|
||||||
|
|
||||||
include:
|
include:
|
||||||
|
- project: "ci/actions/common"
|
||||||
|
file:
|
||||||
|
- "templates/idf/deploy-github.yml"
|
||||||
|
- "templates/idf/deploy-docs.yml"
|
||||||
- ".gitlab/ci/danger.yml"
|
- ".gitlab/ci/danger.yml"
|
||||||
- ".gitlab/ci/common.yml"
|
- ".gitlab/ci/common.yml"
|
||||||
- ".gitlab/ci/rules.yml"
|
- ".gitlab/ci/rules.yml"
|
||||||
@@ -30,7 +34,3 @@ include:
|
|||||||
- ".gitlab/ci/deploy.yml"
|
- ".gitlab/ci/deploy.yml"
|
||||||
- ".gitlab/ci/post_deploy.yml"
|
- ".gitlab/ci/post_deploy.yml"
|
||||||
- ".gitlab/ci/test-win.yml"
|
- ".gitlab/ci/test-win.yml"
|
||||||
- project: "ci/actions/common"
|
|
||||||
file: "templates/idf/deploy-github.yml"
|
|
||||||
- project: "ci/actions/common"
|
|
||||||
file: "templates/idf/deploy-docs.yml"
|
|
||||||
|
|||||||
@@ -24,29 +24,6 @@
|
|||||||
- echo "Installing esp-metrics-cli tool"
|
- echo "Installing esp-metrics-cli tool"
|
||||||
- pip install "esp-metrics-cli>=0.3,<1"
|
- pip install "esp-metrics-cli>=0.3,<1"
|
||||||
|
|
||||||
check_submodule_sync:
|
|
||||||
extends:
|
|
||||||
- .deploy_job_template
|
|
||||||
- .rules:test:submodule
|
|
||||||
stage: test_deploy
|
|
||||||
tags: [ brew, github_sync ]
|
|
||||||
retry: 2
|
|
||||||
variables:
|
|
||||||
GIT_STRATEGY: fetch # use brew local mirror first
|
|
||||||
SUBMODULES_TO_FETCH: "none"
|
|
||||||
PUBLIC_IDF_URL: "https://github.com/espressif/esp-idf.git"
|
|
||||||
dependencies: []
|
|
||||||
script:
|
|
||||||
- git submodule deinit --force .
|
|
||||||
- rm -rf .git/modules # remove all the cached metadata
|
|
||||||
# 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
|
|
||||||
- git config --get-regexp '^submodule\..*\.url$' || true
|
|
||||||
- git submodule update --recursive
|
|
||||||
- echo "IDF was cloned from ${PUBLIC_IDF_URL} completely"
|
|
||||||
|
|
||||||
deploy_update_SHA_in_esp-dockerfiles:
|
deploy_update_SHA_in_esp-dockerfiles:
|
||||||
extends:
|
extends:
|
||||||
- .deploy_job_template
|
- .deploy_job_template
|
||||||
|
|||||||
@@ -120,6 +120,27 @@ check_test_scripts_build_test_rules:
|
|||||||
# requires basic pytest dependencies
|
# requires basic pytest dependencies
|
||||||
- python tools/ci/check_build_test_rules.py check-test-scripts examples/ tools/test_apps components
|
- python tools/ci/check_build_test_rules.py check-test-scripts examples/ tools/test_apps components
|
||||||
|
|
||||||
|
check_submodule_sync:
|
||||||
|
extends:
|
||||||
|
- .pre_check_template
|
||||||
|
- .rules:test:submodule
|
||||||
|
tags: [ brew, github_sync ]
|
||||||
|
retry: 2
|
||||||
|
variables:
|
||||||
|
GIT_STRATEGY: fetch # use brew local mirror first
|
||||||
|
SUBMODULES_TO_FETCH: "none"
|
||||||
|
PUBLIC_IDF_URL: "https://github.com/espressif/esp-idf.git"
|
||||||
|
script:
|
||||||
|
- git submodule deinit --force .
|
||||||
|
- rm -rf .git/modules # remove all the cached metadata
|
||||||
|
# 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
|
||||||
|
- git config --get-regexp '^submodule\..*\.url$' || true
|
||||||
|
- git submodule update --recursive
|
||||||
|
- echo "IDF was cloned from ${PUBLIC_IDF_URL} completely"
|
||||||
|
|
||||||
pipeline_variables:
|
pipeline_variables:
|
||||||
extends:
|
extends:
|
||||||
- .pre_check_template
|
- .pre_check_template
|
||||||
|
|||||||
Reference in New Issue
Block a user