2021-02-09 12:31:38 +08:00
|
|
|
.all_targets: &all_targets
|
|
|
|
- esp32
|
|
|
|
- esp32s2
|
|
|
|
- esp32s3
|
|
|
|
- esp32c3
|
2022-01-18 10:32:56 +08:00
|
|
|
- esp32c2
|
2022-10-27 18:55:07 +08:00
|
|
|
- esp32c6
|
2022-12-29 11:00:42 +08:00
|
|
|
- esp32h2
|
2023-07-27 15:10:50 +08:00
|
|
|
- esp32p4
|
2021-02-09 12:31:38 +08:00
|
|
|
|
|
|
|
.target_test: &target_test
|
|
|
|
- example_test
|
|
|
|
- custom_test
|
|
|
|
- component_ut
|
|
|
|
|
2021-02-22 16:53:37 +08:00
|
|
|
##############
|
|
|
|
# Build Jobs #
|
|
|
|
##############
|
|
|
|
"build":
|
2021-02-09 12:31:38 +08:00
|
|
|
labels:
|
|
|
|
- build
|
|
|
|
patterns:
|
2021-02-22 16:53:37 +08:00
|
|
|
- build_components
|
|
|
|
- build_system
|
2022-08-30 17:11:19 +02:00
|
|
|
- downloadable-tools
|
2021-02-22 16:53:37 +08:00
|
|
|
included_in:
|
|
|
|
- build:target_test
|
2023-07-14 20:15:50 +08:00
|
|
|
- build:check
|
2021-02-09 12:31:38 +08:00
|
|
|
|
2021-02-22 16:53:37 +08:00
|
|
|
# -------------------
|
|
|
|
# Specific Build Jobs
|
|
|
|
# -------------------
|
|
|
|
"build:docker":
|
2021-02-09 12:31:38 +08:00
|
|
|
labels:
|
|
|
|
- build
|
2021-02-22 16:53:37 +08:00
|
|
|
- docker
|
2021-02-09 12:31:38 +08:00
|
|
|
patterns:
|
2021-02-22 16:53:37 +08:00
|
|
|
- docker
|
2022-08-09 17:18:29 +05:30
|
|
|
- submodule
|
2022-08-30 17:11:19 +02:00
|
|
|
- build_system
|
|
|
|
- downloadable-tools
|
2021-02-09 12:31:38 +08:00
|
|
|
|
|
|
|
"build:macos":
|
|
|
|
labels:
|
|
|
|
- build
|
|
|
|
- macos
|
|
|
|
- macos_test # for backward compatibility
|
|
|
|
patterns:
|
2021-02-22 16:53:37 +08:00
|
|
|
- build_system
|
2023-07-14 20:15:50 +08:00
|
|
|
- build_macos
|
2022-08-30 17:11:19 +02:00
|
|
|
- downloadable-tools
|
2021-02-09 12:31:38 +08:00
|
|
|
|
2023-07-14 20:15:50 +08:00
|
|
|
# ---------------------------
|
|
|
|
# Add patterns to build rules
|
|
|
|
# ---------------------------
|
|
|
|
"patterns:template-app":
|
|
|
|
patterns:
|
|
|
|
- build_template-app
|
|
|
|
included_in:
|
|
|
|
- build:target_test
|
|
|
|
|
|
|
|
"patterns:build-check":
|
|
|
|
patterns:
|
|
|
|
- build_check
|
|
|
|
included_in:
|
|
|
|
- build:check
|
|
|
|
|
2021-02-22 16:53:37 +08:00
|
|
|
# ---------------
|
|
|
|
# Build Test Jobs
|
|
|
|
# ---------------
|
|
|
|
"build:{0}-{1}":
|
|
|
|
matrix:
|
|
|
|
- *target_test
|
|
|
|
- *all_targets
|
2021-02-09 12:31:38 +08:00
|
|
|
labels:
|
|
|
|
- build
|
|
|
|
patterns:
|
2021-02-22 16:53:37 +08:00
|
|
|
- build_components
|
|
|
|
- build_system
|
2022-02-11 15:53:46 +08:00
|
|
|
- build_target_test
|
2022-08-30 17:11:19 +02:00
|
|
|
- downloadable-tools
|
2022-01-06 23:21:21 +08:00
|
|
|
included_in:
|
|
|
|
- "build:{0}"
|
2022-01-06 23:24:03 +08:00
|
|
|
- build:target_test
|
2021-02-22 16:53:37 +08:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Target Test Jobs #
|
|
|
|
####################
|
2021-02-09 12:31:38 +08:00
|
|
|
"test:{0}-{1}":
|
|
|
|
matrix:
|
|
|
|
- *target_test
|
|
|
|
- *all_targets
|
2021-02-22 16:53:37 +08:00
|
|
|
labels: # For each rule, use labels <test_type> and <test_type>-<target>
|
2021-02-09 12:31:38 +08:00
|
|
|
- "{0}"
|
|
|
|
- "{0}_{1}"
|
2022-01-06 23:24:03 +08:00
|
|
|
- target_test
|
2021-02-22 16:53:37 +08:00
|
|
|
patterns: # For each rule, use patterns <test_type> and build-<test_type>
|
2021-02-09 12:31:38 +08:00
|
|
|
- "{0}"
|
|
|
|
- "build-{0}"
|
2021-02-22 16:53:37 +08:00
|
|
|
included_in: # Parent rules
|
2022-01-06 23:21:21 +08:00
|
|
|
- "build:{0}"
|
2021-02-09 12:31:38 +08:00
|
|
|
- "build:{0}-{1}"
|
2021-02-22 16:53:37 +08:00
|
|
|
- build:target_test
|
2021-02-09 12:31:38 +08:00
|
|
|
|
2021-02-22 16:53:37 +08:00
|
|
|
# -------------
|
|
|
|
# Special Cases
|
|
|
|
# -------------
|
2021-02-09 12:31:38 +08:00
|
|
|
|
2022-07-17 21:43:41 +08: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 15:02:00 +08:00
|
|
|
"test:{0}-{1}-{2}":
|
2022-07-08 17:47:59 +08:00
|
|
|
matrix:
|
2022-07-22 15:02:00 +08:00
|
|
|
- *target_test
|
2022-07-08 17:47:59 +08:00
|
|
|
- *all_targets
|
2023-09-08 12:45:19 +08:00
|
|
|
- - wifi # pytest*wifi*
|
2023-04-10 08:57:42 +08:00
|
|
|
- ethernet # pytest*ethernet*
|
|
|
|
- sdio # pytest*sdio*
|
2022-07-22 10:20:21 +02:00
|
|
|
- usb # USB Device & Host tests
|
2023-04-10 08:57:42 +08:00
|
|
|
- adc # pytest*adc*
|
2022-09-27 17:22:34 +08:00
|
|
|
- i154
|
2023-02-02 12:45:05 +08:00
|
|
|
- flash_multi
|
2023-04-06 12:20:44 +05:30
|
|
|
- ecdsa
|
2023-04-16 11:41:11 +05:30
|
|
|
- nvs_encr_hmac
|
2022-07-08 17:47:59 +08:00
|
|
|
patterns:
|
2022-07-22 15:02:00 +08:00
|
|
|
- "{0}-{1}-{2}"
|
|
|
|
- "{0}-{2}"
|
|
|
|
- "target_test-{2}"
|
2022-07-08 17:47:59 +08:00
|
|
|
labels:
|
2022-07-22 15:02:00 +08:00
|
|
|
- "{0}_{1}"
|
|
|
|
- "{0}"
|
2022-07-08 17:47:59 +08:00
|
|
|
- target_test
|
|
|
|
included_in:
|
2022-07-22 15:02:00 +08:00
|
|
|
- "build:{0}-{1}"
|
|
|
|
- "build:{0}"
|
2022-07-08 17:47:59 +08:00
|
|
|
- build:target_test
|
|
|
|
|
2022-07-17 21:43:41 +08: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 17:47:59 +08:00
|
|
|
matrix:
|
|
|
|
- - esp32
|
|
|
|
- esp32c3
|
|
|
|
specific_rules:
|
2022-07-17 21:43:41 +08:00
|
|
|
- "if-example_test-ota-include_nightly_run-rule"
|
2022-07-08 17:47:59 +08:00
|
|
|
included_in:
|
|
|
|
- "build:example_test-{0}"
|
|
|
|
- "build:example_test"
|
|
|
|
- build:target_test
|
|
|
|
|
2022-08-17 10:57:39 +08:00
|
|
|
# For i154 runners
|
|
|
|
"test:example_test-i154":
|
|
|
|
patterns:
|
2022-10-25 16:47:52 +08:00
|
|
|
- "example_test-i154"
|
2022-08-17 10:57:39 +08:00
|
|
|
- "target_test-i154"
|
|
|
|
labels:
|
|
|
|
- target_test
|
|
|
|
- example_test
|
|
|
|
included_in:
|
|
|
|
- "build:example_test-esp32s3"
|
2023-01-11 17:11:32 +08:00
|
|
|
- "build:example_test-esp32c6"
|
2023-03-09 11:46:07 +08:00
|
|
|
- "build:example_test-esp32h2"
|
2022-08-17 10:57:39 +08:00
|
|
|
- "build:example_test"
|
|
|
|
- build:target_test
|
|
|
|
|
2021-02-09 12:31:38 +08:00
|
|
|
"test:host_test":
|
|
|
|
labels:
|
|
|
|
- host_test
|
|
|
|
patterns:
|
|
|
|
- host_test
|
|
|
|
|
2021-02-23 12:32:12 +08:00
|
|
|
"test:submodule":
|
|
|
|
labels:
|
|
|
|
- submodule
|
|
|
|
patterns:
|
|
|
|
- submodule
|
|
|
|
|
2021-02-22 16:53:37 +08:00
|
|
|
#################################
|
|
|
|
# Triggered Only By Labels Jobs #
|
|
|
|
#################################
|
2021-07-20 14:08:13 +08:00
|
|
|
"labels:nvs_coverage": # host_test
|
|
|
|
labels:
|
|
|
|
- nvs_coverage
|