CI: minor optimize of CI config file:
1. set shorter expire time for artifacts 2. set dependency for example test jobs, to limit the artifacts it downloads
This commit is contained in:
parent
0fc888cf78
commit
5637424aff
1 changed files with 17 additions and 7 deletions
|
@ -150,6 +150,8 @@ build_ssc_01:
|
||||||
build_ssc_02:
|
build_ssc_02:
|
||||||
<<: *build_ssc_template
|
<<: *build_ssc_template
|
||||||
|
|
||||||
|
# If you want to add new build ssc jobs, please add it into dependencies of `assign_test` and `.test_template`
|
||||||
|
|
||||||
build_esp_idf_tests:
|
build_esp_idf_tests:
|
||||||
<<: *build_template
|
<<: *build_template
|
||||||
artifacts:
|
artifacts:
|
||||||
|
@ -157,7 +159,7 @@ build_esp_idf_tests:
|
||||||
- tools/unit-test-app/output
|
- tools/unit-test-app/output
|
||||||
- components/idf_test/unit_test/TestCaseAll.yml
|
- components/idf_test/unit_test/TestCaseAll.yml
|
||||||
- components/idf_test/unit_test/CIConfigs/*.yml
|
- components/idf_test/unit_test/CIConfigs/*.yml
|
||||||
expire_in: 6 mos
|
expire_in: 1 mos
|
||||||
script:
|
script:
|
||||||
- cd tools/unit-test-app
|
- cd tools/unit-test-app
|
||||||
- MAKEFLAGS= make help # make sure kconfig tools are built in single process
|
- MAKEFLAGS= make help # make sure kconfig tools are built in single process
|
||||||
|
@ -217,6 +219,7 @@ build_examples_06:
|
||||||
build_examples_07:
|
build_examples_07:
|
||||||
<<: *build_examples_template
|
<<: *build_examples_template
|
||||||
|
|
||||||
|
# If you want to add new build example jobs, please add it into dependencies of `.example_test_template`
|
||||||
|
|
||||||
build_docs:
|
build_docs:
|
||||||
stage: build
|
stage: build
|
||||||
|
@ -529,14 +532,21 @@ assign_test:
|
||||||
- /^v\d+\.\d+(\.\d+)?($|-)/
|
- /^v\d+\.\d+(\.\d+)?($|-)/
|
||||||
- triggers
|
- triggers
|
||||||
- schedules
|
- schedules
|
||||||
# gitlab ci do not support match job with RegEx or wildcard now in dependencies.
|
dependencies:
|
||||||
# we have a lot build example jobs and the binaries them exceed the limitation of artifacts.
|
- assign_test
|
||||||
# we can't artifact them in one job. For example test jobs, download all artifacts from previous stages.
|
- build_examples_00
|
||||||
|
- build_examples_01
|
||||||
|
- build_examples_02
|
||||||
|
- build_examples_03
|
||||||
|
- build_examples_04
|
||||||
|
- build_examples_05
|
||||||
|
- build_examples_06
|
||||||
|
- build_examples_07
|
||||||
artifacts:
|
artifacts:
|
||||||
when: always
|
when: always
|
||||||
paths:
|
paths:
|
||||||
- $LOG_PATH
|
- $LOG_PATH
|
||||||
expire_in: 6 mos
|
expire_in: 1 mos
|
||||||
variables:
|
variables:
|
||||||
TEST_FW_PATH: "$CI_PROJECT_DIR/tools/tiny-test-fw"
|
TEST_FW_PATH: "$CI_PROJECT_DIR/tools/tiny-test-fw"
|
||||||
TEST_CASE_PATH: "$CI_PROJECT_DIR/examples"
|
TEST_CASE_PATH: "$CI_PROJECT_DIR/examples"
|
||||||
|
@ -585,7 +595,7 @@ assign_test:
|
||||||
when: always
|
when: always
|
||||||
paths:
|
paths:
|
||||||
- $LOG_PATH
|
- $LOG_PATH
|
||||||
expire_in: 6 mos
|
expire_in: 1 mos
|
||||||
variables:
|
variables:
|
||||||
LOCAL_ENV_CONFIG_PATH: "$CI_PROJECT_DIR/ci-test-runner-configs/$CI_RUNNER_DESCRIPTION/ESP32_IDF"
|
LOCAL_ENV_CONFIG_PATH: "$CI_PROJECT_DIR/ci-test-runner-configs/$CI_RUNNER_DESCRIPTION/ESP32_IDF"
|
||||||
LOG_PATH: "$CI_PROJECT_DIR/$CI_COMMIT_SHA"
|
LOG_PATH: "$CI_PROJECT_DIR/$CI_COMMIT_SHA"
|
||||||
|
@ -614,7 +624,7 @@ nvs_compatible_test:
|
||||||
paths:
|
paths:
|
||||||
- $LOG_PATH
|
- $LOG_PATH
|
||||||
- nvs_wifi.bin
|
- nvs_wifi.bin
|
||||||
expire_in: 6 mos
|
expire_in: 1 mos
|
||||||
tags:
|
tags:
|
||||||
- ESP32_IDF
|
- ESP32_IDF
|
||||||
- NVS_Compatible
|
- NVS_Compatible
|
||||||
|
|
Loading…
Reference in a new issue