2021-02-08 23:31:38 -05:00
|
|
|
.all_targets: &all_targets
|
|
|
|
- esp32
|
|
|
|
- esp32s2
|
|
|
|
- esp32s3
|
|
|
|
- esp32c3
|
|
|
|
|
|
|
|
.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
|
|
|
|
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
|
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
|
|
|
|
|
|
|
|
"build:docs":
|
|
|
|
labels:
|
|
|
|
- docs
|
|
|
|
- build_docs # for backward compatibility
|
|
|
|
patterns:
|
|
|
|
- docs
|
|
|
|
deploy:
|
|
|
|
- production
|
|
|
|
|
2021-02-19 04:28:09 -05:00
|
|
|
"build:docs:label-only":
|
|
|
|
labels:
|
|
|
|
- docs
|
|
|
|
- build_docs # for backward compatibility
|
|
|
|
deploy:
|
|
|
|
- preview
|
|
|
|
|
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
|
|
|
|
|
|
|
|
# -------------
|
|
|
|
# Special Cases
|
|
|
|
# -------------
|
|
|
|
"build:example_test-esp32":
|
|
|
|
labels:
|
2021-02-08 23:31:38 -05:00
|
|
|
- build
|
2021-02-22 03:53:37 -05:00
|
|
|
- weekend_test # only have esp32 jobs
|
|
|
|
- iperf_stress_test # only have esp32 jobs
|
|
|
|
patterns:
|
|
|
|
- build_components
|
|
|
|
- build_system
|
2021-02-08 23:31:38 -05: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}"
|
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
|
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
|
|
|
- test:target_test
|
|
|
|
- test:any_test
|
|
|
|
|
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}"
|
|
|
|
patterns:
|
|
|
|
- component_ut
|
|
|
|
- "build-component_ut-{0}"
|
|
|
|
included_in:
|
|
|
|
- "build:component_ut-{0}"
|
2021-02-22 03:53:37 -05:00
|
|
|
- build:target_test
|
2021-02-08 23:31:38 -05:00
|
|
|
- test:target_test
|
|
|
|
- test:any_test
|
|
|
|
|
|
|
|
# due to the lack of runners, c3 tests will only be triggered by label
|
|
|
|
"test:unit_test-esp32c3":
|
|
|
|
labels:
|
|
|
|
- unit_test_esp32c3
|
|
|
|
patterns:
|
|
|
|
- "build-unit_test-esp32c3"
|
|
|
|
included_in:
|
|
|
|
- "build:unit_test-esp32c3"
|
|
|
|
|
|
|
|
"test:integration_test":
|
|
|
|
labels:
|
|
|
|
- "integration_test"
|
|
|
|
patterns:
|
|
|
|
- "integration_test"
|
|
|
|
included_in:
|
|
|
|
- "build:integration_test"
|
2021-02-22 03:53:37 -05:00
|
|
|
- build:target_test
|
2021-02-08 23:31:38 -05:00
|
|
|
- test:target_test
|
|
|
|
- test:any_test
|
|
|
|
|
|
|
|
"test:host_test":
|
|
|
|
labels:
|
|
|
|
- host_test
|
|
|
|
patterns:
|
|
|
|
- host_test
|
|
|
|
included_in:
|
|
|
|
- test:any_test
|
|
|
|
|
2021-02-22 03:53:37 -05:00
|
|
|
#################################
|
|
|
|
# Triggered Only By Labels Jobs #
|
|
|
|
#################################
|
2021-02-08 23:31:38 -05:00
|
|
|
"labels:{0}":
|
|
|
|
matrix:
|
|
|
|
- [weekend_test, iperf_stress_test, nvs_coverage]
|
|
|
|
labels:
|
|
|
|
- "{0}"
|
|
|
|
|
|
|
|
"labels:fuzzer_test-weekend_test":
|
|
|
|
labels:
|
|
|
|
- fuzzer_test
|
|
|
|
- weekend_test
|