ci(ecdsa): migrate from .gitlab/ci/rules.yml to .build-test-rules.yml

This commit is contained in:
Fu Hanxi 2023-11-30 15:54:55 +01:00
parent 7138b977f8
commit 9a9b1cd11f
No known key found for this signature in database
GPG Key ID: 19399699CF3C4B16
4 changed files with 4 additions and 45 deletions

View File

@ -119,7 +119,6 @@
- sdio # pytest*sdio*
- usb # USB Device & Host tests
- adc # pytest*adc*
- ecdsa
patterns:
- "{0}-{1}-{2}"
- "{0}-{2}"

View File

@ -277,14 +277,6 @@
.patterns-example_test-adc: &patterns-example_test-adc
- "examples/peripherals/adc/**/*"
.patterns-target_test-ecdsa: &patterns-target_test-ecdsa
- "components/{hal,efuse}/???[!t]*/**/*"
- "components/{hal,efuse}/??[!s]?*/**/*"
- "components/{hal,efuse}/???/**/*"
- "components/{hal,efuse}/??/**/*"
- "components/{hal,efuse}/*"
- "components/mbedtls/port/ecdsa/*"
##############
# if anchors #
##############
@ -601,8 +593,6 @@
changes: *patterns-downloadable-tools
- <<: *if-dev-push
changes: *patterns-target_test-adc
- <<: *if-dev-push
changes: *patterns-target_test-ecdsa
- <<: *if-dev-push
changes: *patterns-target_test-wifi
@ -639,8 +629,6 @@
changes: *patterns-downloadable-tools
- <<: *if-dev-push
changes: *patterns-target_test-adc
- <<: *if-dev-push
changes: *patterns-target_test-ecdsa
- <<: *if-dev-push
changes: *patterns-target_test-wifi
@ -677,8 +665,6 @@
changes: *patterns-downloadable-tools
- <<: *if-dev-push
changes: *patterns-target_test-adc
- <<: *if-dev-push
changes: *patterns-target_test-ecdsa
- <<: *if-dev-push
changes: *patterns-target_test-wifi
@ -715,8 +701,6 @@
changes: *patterns-downloadable-tools
- <<: *if-dev-push
changes: *patterns-target_test-adc
- <<: *if-dev-push
changes: *patterns-target_test-ecdsa
- <<: *if-dev-push
changes: *patterns-target_test-wifi
@ -939,8 +923,6 @@
changes: *patterns-downloadable-tools
- <<: *if-dev-push
changes: *patterns-target_test-adc
- <<: *if-dev-push
changes: *patterns-target_test-ecdsa
- <<: *if-dev-push
changes: *patterns-target_test-wifi
@ -965,8 +947,6 @@
changes: *patterns-downloadable-tools
- <<: *if-dev-push
changes: *patterns-target_test-adc
- <<: *if-dev-push
changes: *patterns-target_test-ecdsa
- <<: *if-dev-push
changes: *patterns-target_test-wifi
@ -1630,8 +1610,6 @@
changes: *patterns-example_test-wifi
- <<: *if-dev-push
changes: *patterns-target_test-adc
- <<: *if-dev-push
changes: *patterns-target_test-ecdsa
- <<: *if-dev-push
changes: *patterns-target_test-wifi
@ -1844,19 +1822,6 @@
- <<: *if-dev-push
changes: *patterns-target_test-adc
.rules:test:component_ut-esp32h2-ecdsa:
rules:
- <<: *if-revert-branch
when: never
- <<: *if-protected
- <<: *if-label-build-only
when: never
- <<: *if-label-component_ut
- <<: *if-label-component_ut_esp32h2
- <<: *if-label-target_test
- <<: *if-dev-push
changes: *patterns-target_test-ecdsa
.rules:test:component_ut-esp32p4:
rules:
- <<: *if-revert-branch

View File

@ -1216,15 +1216,6 @@ pytest_components_esp32h2_adc:
artifacts: false
tags: [ esp32h2, adc ]
pytest_components_esp32h2_ecdsa:
extends:
- .pytest_components_dir_template
- .rules:test:component_ut-esp32h2-ecdsa
needs:
- job: build_pytest_components_esp32h2
artifacts: false
tags: [ esp32h2, ecdsa_efuse ]
pytest_components_esp32h2_usb_serial_jtag:
extends:
- .pytest_components_dir_template

View File

@ -5,3 +5,7 @@ components/mbedtls/test_apps:
- if: CONFIG_NAME == "psram" and SOC_SPIRAM_SUPPORTED != 1
- if: CONFIG_NAME == "psram_all_ext" and SOC_SPIRAM_SUPPORTED != 1
- if: CONFIG_NAME == "ecdsa_sign" and SOC_ECDSA_SUPPORTED != 1
depends_components:
- efuse
depends_filepatterns:
- components/mbedtls/port/ecdsa/*