ci: add label rules for integration test

This commit is contained in:
Chen Yudong
2023-10-24 21:40:38 +08:00
committed by Chen Yu Dong
parent 249468e5bc
commit 4d4b89755c
3 changed files with 6 additions and 3 deletions

View File

@@ -51,7 +51,7 @@
- `example_test[_esp32/esp32s2/...]` - `example_test[_esp32/esp32s2/...]`
- `fuzzer_test` - `fuzzer_test`
- `host_test` - `host_test`
- `integration_test[_wifi/ble]` - `integration_test`
- `iperf_stress_test` - `iperf_stress_test`
- `macos` - `macos`
- `macos_test` - `macos_test`

View File

@@ -68,7 +68,6 @@
- "build:{0}" - "build:{0}"
- build:target_test - build:target_test
#################### ####################
# Target Test Jobs # # Target Test Jobs #
#################### ####################

View File

@@ -8,7 +8,7 @@
- "tools/**/*" - "tools/**/*"
- ".gitlab-ci.yml" - ".gitlab-ci.yml"
- ".gitlab/ci/common.yml" - ".gitlab/ci/common.yml"
- ".gitlab/ci/integration-test.yml" - ".gitlab/ci/integration_test.yml"
- ".gitmodules" - ".gitmodules"
- "CMakeLists.txt" - "CMakeLists.txt"
- "install.sh" - "install.sh"
@@ -22,6 +22,10 @@
- if: '$CI_PIPELINE_SOURCE != "merge_request_event"' - if: '$CI_PIPELINE_SOURCE != "merge_request_event"'
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
changes: *patterns-integration_test changes: *patterns-integration_test
# support trigger by ci labels
- if: '$CI_MERGE_REQUEST_LABELS =~ /^(?:[^,\n\r]+,)*target_test(?:,[^,\n\r]+)*$/i'
- if: '$CI_MERGE_REQUEST_LABELS =~ /^(?:[^,\n\r]+,)*integration_test(?:,[^,\n\r]+)*$/i'
- if: '$CI_MERGE_REQUEST_LABELS =~ /^(?:[^,\n\r]+,)*build(?:,[^,\n\r]+)*$/i'
gen_integration_pipeline: gen_integration_pipeline:
extends: extends: