2021-02-08 23:31:38 -05:00
|
|
|
.all_targets: &all_targets
|
|
|
|
- esp32
|
|
|
|
- esp32s2
|
|
|
|
- esp32s3
|
|
|
|
- esp32c3
|
2022-01-17 21:32:56 -05:00
|
|
|
- esp32c2
|
2022-10-27 06:55:07 -04:00
|
|
|
- esp32c6
|
2022-12-28 22:00:42 -05:00
|
|
|
- esp32h2
|
2021-02-08 23:31:38 -05:00
|
|
|
|
|
|
|
.target_test: &target_test
|
|
|
|
- example_test
|
|
|
|
- custom_test
|
|
|
|
- unit_test
|
|
|
|
- component_ut
|
|
|
|
|
2021-02-22 03:53:37 -05:00
|
|
|
##############
|
|
|
|
# Build Jobs #
|
|
|
|
##############
|
|
|
|
"build":
|
2021-02-08 23:31:38 -05:00
|
|
|
labels:
|
|
|
|
- build
|
|
|
|
patterns:
|
2021-02-22 03:53:37 -05:00
|
|
|
- build_components
|
|
|
|
- build_system
|
2022-08-30 11:11:19 -04:00
|
|
|
- downloadable-tools
|
2021-02-22 03:53:37 -05:00
|
|
|
included_in:
|
|
|
|
- build:target_test
|
2021-02-08 23:31:38 -05:00
|
|
|
|
2021-02-22 03:53:37 -05:00
|
|
|
# -------------------
|
|
|
|
# Specific Build Jobs
|
|
|
|
# -------------------
|
|
|
|
"build:docker":
|
2021-02-08 23:31:38 -05:00
|
|
|
labels:
|
|
|
|
- build
|
2021-02-22 03:53:37 -05:00
|
|
|
- docker
|
2021-02-08 23:31:38 -05:00
|
|
|
patterns:
|
2021-02-22 03:53:37 -05:00
|
|
|
- docker
|
2022-08-09 07:48:29 -04:00
|
|
|
- submodule
|
2022-08-30 11:11:19 -04:00
|
|
|
- build_system
|
|
|
|
- downloadable-tools
|
2021-02-08 23:31:38 -05:00
|
|
|
|
2021-02-22 03:53:37 -05:00
|
|
|
"build:windows":
|
2021-02-08 23:31:38 -05:00
|
|
|
labels:
|
|
|
|
- build
|
2021-02-22 03:53:37 -05:00
|
|
|
- windows
|
2021-02-08 23:31:38 -05:00
|
|
|
patterns:
|
2021-02-22 03:53:37 -05:00
|
|
|
- build_system
|
|
|
|
- windows
|
2021-02-08 23:31:38 -05:00
|
|
|
|
|
|
|
"build:macos":
|
|
|
|
labels:
|
|
|
|
- build
|
|
|
|
- macos
|
|
|
|
- macos_test # for backward compatibility
|
|
|
|
patterns:
|
2021-02-22 03:53:37 -05:00
|
|
|
- build_system
|
2021-02-08 23:31:38 -05:00
|
|
|
- macos
|
2022-08-30 11:11:19 -04:00
|
|
|
- downloadable-tools
|
2021-02-08 23:31:38 -05:00
|
|
|
|
2021-02-22 03:53:37 -05:00
|
|
|
# ---------------
|
|
|
|
# Build Test Jobs
|
|
|
|
# ---------------
|
|
|
|
"build:{0}-{1}":
|
|
|
|
matrix:
|
|
|
|
- *target_test
|
|
|
|
- *all_targets
|
2021-02-08 23:31:38 -05:00
|
|
|
labels:
|
|
|
|
- build
|
|
|
|
patterns:
|
2021-02-22 03:53:37 -05:00
|
|
|
- build_components
|
|
|
|
- build_system
|
2022-02-11 02:53:46 -05:00
|
|
|
- build_target_test
|
2022-08-30 11:11:19 -04:00
|
|
|
- downloadable-tools
|
2022-01-06 10:21:21 -05:00
|
|
|
included_in:
|
|
|
|
- "build:{0}"
|
2022-01-06 10:24:03 -05:00
|
|
|
- build:target_test
|
2021-02-22 03:53:37 -05:00
|
|
|
|
2021-04-09 00:27:41 -04:00
|
|
|
build:integration_test:
|
|
|
|
labels:
|
|
|
|
- build
|
|
|
|
patterns:
|
|
|
|
- build_components
|
|
|
|
- build_system
|
2022-01-06 10:24:03 -05:00
|
|
|
included_in:
|
|
|
|
- build:target_test
|
2021-04-09 00:27:41 -04:00
|
|
|
|
2022-05-11 04:02:48 -04:00
|
|
|
|
2021-02-22 03:53:37 -05:00
|
|
|
####################
|
|
|
|
# Target Test Jobs #
|
|
|
|
####################
|
2021-02-08 23:31:38 -05:00
|
|
|
"test:{0}-{1}":
|
|
|
|
matrix:
|
|
|
|
- *target_test
|
|
|
|
- *all_targets
|
2021-02-22 03:53:37 -05:00
|
|
|
labels: # For each rule, use labels <test_type> and <test_type>-<target>
|
2021-02-08 23:31:38 -05:00
|
|
|
- "{0}"
|
|
|
|
- "{0}_{1}"
|
2022-01-06 10:24:03 -05:00
|
|
|
- target_test
|
2021-02-22 03:53:37 -05:00
|
|
|
patterns: # For each rule, use patterns <test_type> and build-<test_type>
|
2021-02-08 23:31:38 -05:00
|
|
|
- "{0}"
|
|
|
|
- "build-{0}"
|
2021-02-22 03:53:37 -05:00
|
|
|
included_in: # Parent rules
|
2022-01-06 10:21:21 -05:00
|
|
|
- "build:{0}"
|
2021-02-08 23:31:38 -05:00
|
|
|
- "build:{0}-{1}"
|
2021-02-22 03:53:37 -05:00
|
|
|
- build:target_test
|
2021-02-08 23:31:38 -05:00
|
|
|
|
2021-02-22 03:53:37 -05:00
|
|
|
# -------------
|
|
|
|
# Special Cases
|
|
|
|
# -------------
|
|
|
|
"test:component_ut-{0}": # component_ut will trigger by unit_test as well, since now we have 2 kinds of UT
|
2021-02-08 23:31:38 -05:00
|
|
|
matrix:
|
|
|
|
- *all_targets
|
|
|
|
labels:
|
|
|
|
- component_ut
|
|
|
|
- "component_ut_{0}"
|
|
|
|
- unit_test
|
|
|
|
- "unit_test_{0}"
|
2022-01-06 10:24:03 -05:00
|
|
|
- target_test
|
2021-02-08 23:31:38 -05:00
|
|
|
patterns:
|
|
|
|
- component_ut
|
|
|
|
- "build-component_ut-{0}"
|
|
|
|
included_in:
|
2022-01-06 10:21:21 -05:00
|
|
|
- build:component_ut
|
2021-02-08 23:31:38 -05:00
|
|
|
- "build:component_ut-{0}"
|
2021-02-22 03:53:37 -05:00
|
|
|
- build:target_test
|
2021-02-08 23:31:38 -05:00
|
|
|
|
2022-07-17 09:43:41 -04:00
|
|
|
# To reduce the specific runners' usage.
|
|
|
|
# Do not create these jobs by default patterns on development branches
|
|
|
|
# Can be triggered by labels or related changes
|
2022-07-22 03:02:00 -04:00
|
|
|
"test:{0}-{1}-{2}":
|
2022-07-08 05:47:59 -04:00
|
|
|
matrix:
|
2022-07-22 03:02:00 -04:00
|
|
|
- *target_test
|
2022-07-08 05:47:59 -04:00
|
|
|
- *all_targets
|
2022-07-17 09:43:41 -04:00
|
|
|
- - bt # example_test_005
|
2023-04-09 20:57:42 -04:00
|
|
|
- wifi # pytest*wifi*
|
|
|
|
- ethernet # pytest*ethernet*
|
|
|
|
- sdio # pytest*sdio*
|
2022-07-22 04:20:21 -04:00
|
|
|
- usb # USB Device & Host tests
|
2023-04-09 20:57:42 -04:00
|
|
|
- adc # pytest*adc*
|
2022-09-27 05:22:34 -04:00
|
|
|
- i154
|
2023-02-01 23:45:05 -05:00
|
|
|
- flash_multi
|
2023-04-06 02:50:44 -04:00
|
|
|
- ecdsa
|
2023-04-09 20:56:59 -04:00
|
|
|
- ccs811 # pytest*ccs811*
|
2022-07-08 05:47:59 -04:00
|
|
|
patterns:
|
2022-07-22 03:02:00 -04:00
|
|
|
- "{0}-{1}-{2}"
|
|
|
|
- "{0}-{2}"
|
|
|
|
- "target_test-{2}"
|
2022-07-08 05:47:59 -04:00
|
|
|
labels:
|
2022-07-22 03:02:00 -04:00
|
|
|
- "{0}_{1}"
|
|
|
|
- "{0}"
|
2022-07-08 05:47:59 -04:00
|
|
|
- target_test
|
|
|
|
included_in:
|
2022-07-22 03:02:00 -04:00
|
|
|
- "build:{0}-{1}"
|
|
|
|
- "build:{0}"
|
2022-07-08 05:47:59 -04:00
|
|
|
- build:target_test
|
|
|
|
|
2022-07-17 09:43:41 -04:00
|
|
|
# For example_test*flash_encryption_wifi_high_traffic jobs
|
|
|
|
# set `INCLUDE_NIGHTLY_RUN` variable when triggered on development branches
|
|
|
|
"test:example_test-{0}-include_nightly_run-rule":
|
2022-07-08 05:47:59 -04:00
|
|
|
matrix:
|
|
|
|
- - esp32
|
|
|
|
- esp32c3
|
|
|
|
specific_rules:
|
2022-07-17 09:43:41 -04:00
|
|
|
- "if-example_test-ota-include_nightly_run-rule"
|
2022-07-08 05:47:59 -04:00
|
|
|
included_in:
|
|
|
|
- "build:example_test-{0}"
|
|
|
|
- "build:example_test"
|
|
|
|
- build:target_test
|
|
|
|
|
2022-08-16 22:57:39 -04:00
|
|
|
# For i154 runners
|
|
|
|
"test:example_test-i154":
|
|
|
|
patterns:
|
2022-10-25 04:47:52 -04:00
|
|
|
- "example_test-i154"
|
2022-08-16 22:57:39 -04:00
|
|
|
- "target_test-i154"
|
|
|
|
labels:
|
|
|
|
- target_test
|
|
|
|
- example_test
|
|
|
|
included_in:
|
|
|
|
- "build:example_test-esp32s3"
|
2023-01-11 04:11:32 -05:00
|
|
|
- "build:example_test-esp32c6"
|
2023-03-08 22:46:07 -05:00
|
|
|
- "build:example_test-esp32h2"
|
2022-08-16 22:57:39 -04:00
|
|
|
- "build:example_test"
|
|
|
|
- build:target_test
|
|
|
|
|
2022-12-01 22:12:00 -05:00
|
|
|
"test:integration_test_{0}":
|
|
|
|
matrix:
|
|
|
|
- - wifi
|
|
|
|
- ble
|
2021-02-08 23:31:38 -05:00
|
|
|
labels:
|
2022-12-01 22:12:00 -05:00
|
|
|
- integration_test_{0}
|
2022-01-06 10:21:21 -05:00
|
|
|
- integration_test
|
2022-01-06 10:24:03 -05:00
|
|
|
- target_test
|
2021-02-08 23:31:38 -05:00
|
|
|
patterns:
|
2022-12-01 23:01:09 -05:00
|
|
|
- integration_test-{0}
|
|
|
|
- target_test-{0}
|
2022-12-01 22:12:00 -05:00
|
|
|
# - maybe others
|
2021-02-08 23:31:38 -05:00
|
|
|
included_in:
|
2022-12-01 22:12:00 -05:00
|
|
|
- test:integration_test
|
2022-01-06 10:21:21 -05:00
|
|
|
- build:integration_test
|
2021-02-22 03:53:37 -05:00
|
|
|
- build:target_test
|
2021-02-08 23:31:38 -05:00
|
|
|
|
|
|
|
"test:host_test":
|
|
|
|
labels:
|
|
|
|
- host_test
|
|
|
|
patterns:
|
|
|
|
- host_test
|
|
|
|
|
2021-02-22 23:32:12 -05:00
|
|
|
"test:submodule":
|
|
|
|
labels:
|
|
|
|
- submodule
|
|
|
|
patterns:
|
|
|
|
- submodule
|
|
|
|
|
2021-02-22 03:53:37 -05:00
|
|
|
#################################
|
|
|
|
# Triggered Only By Labels Jobs #
|
|
|
|
#################################
|
2021-07-20 02:08:13 -04:00
|
|
|
"labels:nvs_coverage": # host_test
|
|
|
|
labels:
|
|
|
|
- nvs_coverage
|
2021-02-08 23:31:38 -05:00
|
|
|
|
2022-03-29 23:47:50 -04:00
|
|
|
"labels-protected:lan8720": # UT # FIXME: IDFCI-1176 temporary run this on master/release or with label
|
|
|
|
labels:
|
|
|
|
- lan8720
|
|
|
|
included_in:
|
|
|
|
- build:unit_test
|
|
|
|
- build:unit_test-esp32
|
|
|
|
- build:target_test
|
|
|
|
- build:component_ut
|
|
|
|
- build:component_ut-esp32
|