ci: add example c3 as a special case for build only

This commit is contained in:
Fu Hanxi 2021-03-26 19:08:27 +08:00
parent 1dfa0e0aa1
commit d64eafcd7c
3 changed files with 7 additions and 2 deletions

View File

@ -145,7 +145,8 @@
labels:
- example_test_esp32c3
included_in:
- "build:example_test-esp32c3"
- build:example_test-esp32c3
- build:target_test
"test:integration_test":
labels:

View File

@ -217,7 +217,8 @@ class RulesWriter:
else:
if not (name.endswith('-preview') or name.startswith('labels:')):
_rules.append(self.RULE_PROTECTED)
if name.startswith('test:'):
# Special case for esp32c3 example_test, for now it only run with label
if name.startswith('test:') or name == 'labels:example_test-esp32c3':
_rules.append(self.RULE_BUILD_ONLY)
for label in cfg['labels']:
_rules.append(self.RULE_LABEL_TEMPLATE.format(label))

View File

@ -602,6 +602,7 @@
- <<: *if-label-custom_test_esp32s3
- <<: *if-label-example_test
- <<: *if-label-example_test_esp32
- <<: *if-label-example_test_esp32c3
- <<: *if-label-example_test_esp32s2
- <<: *if-label-example_test_esp32s3
- <<: *if-label-integration_test
@ -691,6 +692,8 @@
.rules:labels:example_test-esp32c3:
rules:
- <<: *if-label-build-only
when: never
- <<: *if-label-example_test_esp32c3
.rules:labels:fuzzer_test-weekend_test: