forked from espressif/esp-idf
ci(usb): migrate from .gitlab/ci/rules.yml to .build-test-rules.yml
This commit is contained in:
@@ -117,7 +117,6 @@
|
|||||||
- - wifi # pytest*wifi*
|
- - wifi # pytest*wifi*
|
||||||
- ethernet # pytest*ethernet*
|
- ethernet # pytest*ethernet*
|
||||||
- sdio # pytest*sdio*
|
- sdio # pytest*sdio*
|
||||||
- usb # USB Device & Host tests
|
|
||||||
patterns:
|
patterns:
|
||||||
- "{0}-{1}-{2}"
|
- "{0}-{1}-{2}"
|
||||||
- "{0}-{2}"
|
- "{0}-{2}"
|
||||||
|
@@ -248,21 +248,6 @@
|
|||||||
- "components/esp_driver_sdmmc/include/driver/sdmmc*.h"
|
- "components/esp_driver_sdmmc/include/driver/sdmmc*.h"
|
||||||
- "components/sdmmc/**/*"
|
- "components/sdmmc/**/*"
|
||||||
|
|
||||||
# for jobs: USB host and device examples
|
|
||||||
.patterns-example_test-usb: &patterns-example_test-usb
|
|
||||||
- "components/hal/usb*.c"
|
|
||||||
- "components/hal/esp32s*/include/hal/usb*.h"
|
|
||||||
- "components/usb/*include/**/*"
|
|
||||||
- "components/usb/*"
|
|
||||||
- "examples/peripherals/usb/host/**/**/**/*"
|
|
||||||
- "examples/peripherals/usb/device/**/**/*"
|
|
||||||
|
|
||||||
# for jobs: USB component (Host) pytest test_app
|
|
||||||
.patterns-component_ut-usb: &patterns-component_ut-usb
|
|
||||||
- "components/hal/usb*.c"
|
|
||||||
- "components/hal/esp32s*/include/hal/usb*.h"
|
|
||||||
- "components/usb/**/*"
|
|
||||||
|
|
||||||
##############
|
##############
|
||||||
# if anchors #
|
# if anchors #
|
||||||
##############
|
##############
|
||||||
@@ -1558,8 +1543,6 @@
|
|||||||
changes: *patterns-component_ut
|
changes: *patterns-component_ut
|
||||||
- <<: *if-dev-push
|
- <<: *if-dev-push
|
||||||
changes: *patterns-component_ut-sdio
|
changes: *patterns-component_ut-sdio
|
||||||
- <<: *if-dev-push
|
|
||||||
changes: *patterns-component_ut-usb
|
|
||||||
- <<: *if-dev-push
|
- <<: *if-dev-push
|
||||||
changes: *patterns-component_ut-wifi
|
changes: *patterns-component_ut-wifi
|
||||||
- <<: *if-dev-push
|
- <<: *if-dev-push
|
||||||
@@ -1574,8 +1557,6 @@
|
|||||||
changes: *patterns-example_test-ethernet
|
changes: *patterns-example_test-ethernet
|
||||||
- <<: *if-dev-push
|
- <<: *if-dev-push
|
||||||
changes: *patterns-example_test-sdio
|
changes: *patterns-example_test-sdio
|
||||||
- <<: *if-dev-push
|
|
||||||
changes: *patterns-example_test-usb
|
|
||||||
- <<: *if-dev-push
|
- <<: *if-dev-push
|
||||||
changes: *patterns-example_test-wifi
|
changes: *patterns-example_test-wifi
|
||||||
- <<: *if-dev-push
|
- <<: *if-dev-push
|
||||||
@@ -1767,19 +1748,6 @@
|
|||||||
- <<: *if-dev-push
|
- <<: *if-dev-push
|
||||||
changes: *patterns-component_ut
|
changes: *patterns-component_ut
|
||||||
|
|
||||||
.rules:test:component_ut-esp32s3-usb:
|
|
||||||
rules:
|
|
||||||
- <<: *if-revert-branch
|
|
||||||
when: never
|
|
||||||
- <<: *if-protected
|
|
||||||
- <<: *if-label-build-only
|
|
||||||
when: never
|
|
||||||
- <<: *if-label-component_ut
|
|
||||||
- <<: *if-label-component_ut_esp32s3
|
|
||||||
- <<: *if-label-target_test
|
|
||||||
- <<: *if-dev-push
|
|
||||||
changes: *patterns-component_ut-usb
|
|
||||||
|
|
||||||
.rules:test:component_ut-esp32s3-wifi:
|
.rules:test:component_ut-esp32s3-wifi:
|
||||||
rules:
|
rules:
|
||||||
- <<: *if-revert-branch
|
- <<: *if-revert-branch
|
||||||
@@ -2194,19 +2162,6 @@
|
|||||||
- <<: *if-dev-push
|
- <<: *if-dev-push
|
||||||
changes: *patterns-example_test-sdio
|
changes: *patterns-example_test-sdio
|
||||||
|
|
||||||
.rules:test:example_test-esp32s2-usb:
|
|
||||||
rules:
|
|
||||||
- <<: *if-revert-branch
|
|
||||||
when: never
|
|
||||||
- <<: *if-protected
|
|
||||||
- <<: *if-label-build-only
|
|
||||||
when: never
|
|
||||||
- <<: *if-label-example_test
|
|
||||||
- <<: *if-label-example_test_esp32s2
|
|
||||||
- <<: *if-label-target_test
|
|
||||||
- <<: *if-dev-push
|
|
||||||
changes: *patterns-example_test-usb
|
|
||||||
|
|
||||||
.rules:test:example_test-esp32s2-wifi:
|
.rules:test:example_test-esp32s2-wifi:
|
||||||
rules:
|
rules:
|
||||||
- <<: *if-revert-branch
|
- <<: *if-revert-branch
|
||||||
|
@@ -544,15 +544,6 @@ pytest_examples_esp32c3_flash_encryption:
|
|||||||
artifacts: false
|
artifacts: false
|
||||||
tags: [ esp32c3, flash_encryption ]
|
tags: [ esp32c3, flash_encryption ]
|
||||||
|
|
||||||
pytest_examples_esp32s2_usb_device:
|
|
||||||
extends:
|
|
||||||
- .pytest_examples_dir_template
|
|
||||||
- .rules:test:example_test-esp32s2-usb
|
|
||||||
needs:
|
|
||||||
- job: build_pytest_examples_esp32s2
|
|
||||||
artifacts: false
|
|
||||||
tags: [ esp32s2, usb_device ]
|
|
||||||
|
|
||||||
pytest_examples_esp32_sdmmc:
|
pytest_examples_esp32_sdmmc:
|
||||||
extends:
|
extends:
|
||||||
- .pytest_examples_dir_template
|
- .pytest_examples_dir_template
|
||||||
@@ -1156,15 +1147,6 @@ pytest_examples_esp32h2_zigbee:
|
|||||||
artifacts: false
|
artifacts: false
|
||||||
tags: [ esp32h2, zigbee_multi_dut ]
|
tags: [ esp32h2, zigbee_multi_dut ]
|
||||||
|
|
||||||
pytest_components_esp32s3_usb_host:
|
|
||||||
extends:
|
|
||||||
- .pytest_components_dir_template
|
|
||||||
- .rules:test:component_ut-esp32s3-usb
|
|
||||||
needs:
|
|
||||||
- job: build_pytest_components_esp32s3
|
|
||||||
artifacts: false
|
|
||||||
tags: [ esp32s3, usb_host_flash_disk ]
|
|
||||||
|
|
||||||
.pytest_test_apps_dir_template:
|
.pytest_test_apps_dir_template:
|
||||||
extends: .pytest_template
|
extends: .pytest_template
|
||||||
variables:
|
variables:
|
||||||
|
@@ -3,3 +3,8 @@
|
|||||||
components/usb/test_apps:
|
components/usb/test_apps:
|
||||||
enable:
|
enable:
|
||||||
- if: SOC_USB_OTG_SUPPORTED == 1
|
- if: SOC_USB_OTG_SUPPORTED == 1
|
||||||
|
depends_components:
|
||||||
|
- usb
|
||||||
|
depends_filepatterns:
|
||||||
|
- components/hal/usb*.c
|
||||||
|
- components/hal/esp32*/include/hal/usb*.h
|
||||||
|
@@ -465,6 +465,21 @@ examples/peripherals/usb:
|
|||||||
disable:
|
disable:
|
||||||
- if: SOC_USB_OTG_SUPPORTED != 1
|
- if: SOC_USB_OTG_SUPPORTED != 1
|
||||||
|
|
||||||
|
examples/peripherals/usb/device:
|
||||||
|
enable:
|
||||||
|
- if: SOC_USB_OTG_SUPPORTED == 1
|
||||||
|
disable_test:
|
||||||
|
- if: IDF_TARGET == "esp32s3"
|
||||||
|
temporary: true
|
||||||
|
reason: lack of runners
|
||||||
|
depends_components:
|
||||||
|
- usb
|
||||||
|
depends_filepatterns:
|
||||||
|
- components/hal/usb*.c
|
||||||
|
- components/hal/esp32*/include/hal/usb*.h
|
||||||
|
- examples/peripherals/usb/host/**/*
|
||||||
|
- examples/peripherals/usb/device/**/*
|
||||||
|
|
||||||
examples/peripherals/usb_serial_jtag/usb_serial_jtag_echo:
|
examples/peripherals/usb_serial_jtag/usb_serial_jtag_echo:
|
||||||
disable:
|
disable:
|
||||||
- if: SOC_USB_SERIAL_JTAG_SUPPORTED != 1
|
- if: SOC_USB_SERIAL_JTAG_SUPPORTED != 1
|
||||||
|
@@ -1,9 +0,0 @@
|
|||||||
# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps
|
|
||||||
|
|
||||||
examples/peripherals/usb/device:
|
|
||||||
enable:
|
|
||||||
- if: SOC_USB_OTG_SUPPORTED == 1
|
|
||||||
disable_test:
|
|
||||||
- if: IDF_TARGET == "esp32s3"
|
|
||||||
temporary: true
|
|
||||||
reason: lack of runners
|
|
Reference in New Issue
Block a user