2020-10-20 03:00:50 -04:00
|
|
|
# if anchors
|
|
|
|
.if-ref-master: &if-ref-master
|
2020-09-26 23:20:53 -04:00
|
|
|
if: '$CI_COMMIT_REF_NAME == "master"'
|
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.if-tag-release-no_label: &if-tag-release-no_label
|
2020-09-26 23:20:53 -04:00
|
|
|
if: '$CI_COMMIT_TAG =~ /^v\d+\.\d+(\.\d+)?($|-)/ && $BOT_TRIGGER_WITH_LABEL == null'
|
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.if-protected: &if-protected
|
|
|
|
if: '($CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_BRANCH =~ /^release\/v/ || $CI_COMMIT_TAG =~ /^v\d+\.\d+(\.\d+)?($|-)/)'
|
|
|
|
|
|
|
|
.if-protected-no_label: &if-protected-no_label
|
2020-09-26 23:20:53 -04:00
|
|
|
if: '($CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_BRANCH =~ /^release\/v/ || $CI_COMMIT_TAG =~ /^v\d+\.\d+(\.\d+)?($|-)/) && $BOT_TRIGGER_WITH_LABEL == null'
|
|
|
|
|
|
|
|
.if-dev-push: &if-dev-push
|
|
|
|
if: '$CI_COMMIT_REF_NAME != "master" && $CI_COMMIT_BRANCH !~ /^release\/v/ && $CI_COMMIT_TAG !~ /^v\d+\.\d+(\.\d+)?($|-)/ && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "merge_request_event")'
|
|
|
|
|
|
|
|
.if-schedule: &if-schedule
|
|
|
|
if: '$CI_PIPELINE_SOURCE == "schedule"'
|
|
|
|
|
|
|
|
.if-trigger: &if-trigger
|
|
|
|
if: '$CI_PIPELINE_SOURCE == "trigger"'
|
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.if-label-regular_test: &if-label-regular_test
|
2020-09-26 23:20:53 -04:00
|
|
|
if: '$BOT_LABEL_REGULAR_TEST'
|
|
|
|
|
|
|
|
.if-label-build: &if-label-build
|
|
|
|
if: '$BOT_LABEL_BUILD'
|
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.if-label-build_docs: &if-label-build_docs
|
2020-09-26 23:20:53 -04:00
|
|
|
if: '$BOT_LABEL_BUILD_DOCS'
|
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.if-label-integration_test: &if-label-integration_test
|
2020-09-26 23:20:53 -04:00
|
|
|
if: '$BOT_LABEL_INTEGRATION_TEST'
|
|
|
|
|
2020-11-29 22:44:37 -05:00
|
|
|
.if-label-unit_test: &if-label-unit_test
|
|
|
|
if: '$BOT_LABEL_UNIT_TEST'
|
|
|
|
|
|
|
|
.if-label-unit_test-32: &if-label-unit_test-32
|
2020-11-12 04:58:24 -05:00
|
|
|
if: '$BOT_LABEL_UNIT_TEST_32'
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-11-29 22:44:37 -05:00
|
|
|
.if-label-unit_test-s2: &if-label-unit_test-s2
|
2020-09-26 23:20:53 -04:00
|
|
|
if: '$BOT_LABEL_UNIT_TEST_S2'
|
|
|
|
|
2020-12-30 03:10:37 -05:00
|
|
|
.if-label-unit_test-c3: &if-label-unit_test-c3
|
|
|
|
if: '$BOT_LABEL_UNIT_TEST_C3'
|
|
|
|
|
2020-11-29 22:44:37 -05:00
|
|
|
.if-label-unit_test-all_labels: &if-label-unit_test-all_labels
|
2020-12-30 03:10:37 -05:00
|
|
|
if: '$BOT_LABEL_UNIT_TEST || $BOT_LABEL_UNIT_TEST_32 || $BOT_LABEL_UNIT_TEST_S2 || $BOT_LABEL_UNIT_TEST_C3'
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.if-label-weekend_test: &if-label-weekend_test
|
2020-09-26 23:20:53 -04:00
|
|
|
if: '$BOT_LABEL_WEEKEND_TEST'
|
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.if-label-example_test: &if-label-example_test
|
2020-09-26 23:20:53 -04:00
|
|
|
if: '$BOT_LABEL_EXAMPLE_TEST'
|
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.if-label-custom_test: &if-label-custom_test
|
2020-09-26 23:20:53 -04:00
|
|
|
if: '$BOT_LABEL_CUSTOM_TEST'
|
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.if-label-host_test: &if-label-host_test
|
2020-09-26 23:20:53 -04:00
|
|
|
if: '$BOT_LABEL_HOST_TEST'
|
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.if-label-fuzzer_test: &if-label-fuzzer_test
|
2020-09-26 23:20:53 -04:00
|
|
|
if: '$BOT_LABEL_FUZZER_TEST'
|
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.if-label-nvs_coverage: &if-label-nvs_coverage
|
2020-09-26 23:20:53 -04:00
|
|
|
if: '$BOT_LABEL_NVS_COVERAGE'
|
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.if-label-static_analysis: &if-label-static_analysis
|
2020-09-26 23:20:53 -04:00
|
|
|
if: '$BOT_LABEL_STATIC_ANALYSIS || $BOT_LABEL_STATIC_ANALYSIS_ALL'
|
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.if-label-iperf_stress_test: &if-label-iperf_stress_test
|
2020-09-26 23:20:53 -04:00
|
|
|
if: '$BOT_LABEL_IPERF_STRESS_TEST'
|
|
|
|
|
|
|
|
.if-os-mac: &if-os-mac
|
|
|
|
if: '$BOT_LABEL_MACOS_TEST'
|
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
# Rules templates
|
|
|
|
.rules:protected:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-protected
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.rules:protected-no_label:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-protected-no_label
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.rules:protected-schedule:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-protected
|
|
|
|
- <<: *if-schedule
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.rules:trigger:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-trigger
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.rules:dev:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-trigger
|
|
|
|
- <<: *if-dev-push
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.rules:os:mac_os:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-protected-no_label
|
|
|
|
- <<: *if-os-mac
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.rules:tag:release-no_label:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-tag-release-no_label
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.rules:ref:master-schedule:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-ref-master
|
|
|
|
- <<: *if-schedule
|
|
|
|
|
|
|
|
.rules:ref:master-schedule-always:
|
|
|
|
rules:
|
|
|
|
- <<: *if-ref-master
|
|
|
|
when: always
|
|
|
|
- <<: *if-schedule
|
|
|
|
when: always
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.rules:labels:static_analysis-only:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-label-static_analysis
|
2020-09-26 23:20:53 -04:00
|
|
|
|
|
|
|
.rules:labels:build:
|
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-protected-no_label
|
|
|
|
- <<: *if-label-regular_test
|
2020-09-26 23:20:53 -04:00
|
|
|
- <<: *if-label-build
|
|
|
|
|
|
|
|
.rules:labels:build_docs:
|
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-protected-no_label
|
2020-09-26 23:20:53 -04:00
|
|
|
- <<: *if-label-build
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-label-regular_test
|
|
|
|
- <<: *if-label-build_docs
|
2020-09-26 23:20:53 -04:00
|
|
|
|
|
|
|
.rules:labels:build_docs-slim:
|
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-protected-no_label
|
|
|
|
- <<: *if-label-build_docs
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-11-10 21:27:27 -05:00
|
|
|
.rules:labels:build_docs-preview:
|
|
|
|
rules:
|
|
|
|
- <<: *if-label-build_docs
|
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.rules:labels:weekend_test-only:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-label-weekend_test
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.rules:labels:iperf_stress_test-only:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-label-iperf_stress_test
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.rules:labels:fuzzer_test-weekend_test-only:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-label-fuzzer_test
|
|
|
|
- <<: *if-label-weekend_test
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.rules:labels:nvs_coverage-only:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-label-nvs_coverage
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.rules:labels:host_test:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-protected-no_label
|
|
|
|
- <<: *if-label-regular_test
|
|
|
|
- <<: *if-label-host_test
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.rules:tests:example_test-schedule:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-protected-no_label
|
|
|
|
- <<: *if-label-example_test
|
|
|
|
- <<: *if-schedule
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.rules:tests:custom_test-schedule:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-protected-no_label
|
|
|
|
- <<: *if-label-custom_test
|
|
|
|
- <<: *if-schedule
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.rules:tests:unit_test:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-protected-no_label
|
2020-11-29 22:44:37 -05:00
|
|
|
- <<: *if-label-unit_test-all_labels
|
2020-11-12 04:58:24 -05:00
|
|
|
|
2020-11-29 22:44:37 -05:00
|
|
|
.rules:tests:unit_test_32:
|
2020-11-12 04:58:24 -05:00
|
|
|
rules:
|
|
|
|
- <<: *if-protected-no_label
|
2020-11-29 22:44:37 -05:00
|
|
|
- <<: *if-label-unit_test
|
|
|
|
- <<: *if-label-unit_test-32
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-11-29 22:44:37 -05:00
|
|
|
.rules:tests:unit_test_s2:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-11-12 04:58:24 -05:00
|
|
|
- <<: *if-protected-no_label
|
2020-11-29 22:44:37 -05:00
|
|
|
- <<: *if-label-unit_test
|
|
|
|
- <<: *if-label-unit_test-s2
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-12-30 03:10:37 -05:00
|
|
|
.rules:tests:unit_test_c3:
|
|
|
|
rules:
|
2021-02-19 03:47:00 -05:00
|
|
|
- <<: *if-protected-no_label
|
2020-12-30 03:10:37 -05:00
|
|
|
- <<: *if-label-unit_test
|
|
|
|
- <<: *if-label-unit_test-c3
|
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.rules:tests:integration_test:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-protected-no_label
|
|
|
|
- <<: *if-label-integration_test
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-10-27 01:52:08 -04:00
|
|
|
.rules:assign_test:target_test-integration_test-weekend_test:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-protected-no_label
|
2020-10-27 01:52:08 -04:00
|
|
|
- <<: *if-label-regular_test
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-label-example_test
|
|
|
|
- <<: *if-label-custom_test
|
2020-11-29 22:44:37 -05:00
|
|
|
- <<: *if-label-unit_test-all_labels
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-label-integration_test
|
|
|
|
- <<: *if-label-weekend_test
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.rules:build_tests:integration_test:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-protected-no_label
|
2020-09-26 23:20:53 -04:00
|
|
|
- <<: *if-label-build
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-label-regular_test
|
|
|
|
- <<: *if-label-integration_test
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.rules:build_tests:weekend_test:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-protected-no_label
|
2020-09-26 23:20:53 -04:00
|
|
|
- <<: *if-label-build
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-label-regular_test
|
|
|
|
- <<: *if-label-weekend_test
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.rules:build_tests:unit_test:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-protected-no_label
|
|
|
|
- <<: *if-label-build
|
|
|
|
- <<: *if-label-regular_test
|
2020-11-29 22:44:37 -05:00
|
|
|
- <<: *if-label-unit_test-all_labels
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.rules:build_tests:example_test-weekend_test:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-protected-no_label
|
|
|
|
- <<: *if-label-build
|
|
|
|
- <<: *if-label-regular_test
|
|
|
|
- <<: *if-label-example_test
|
|
|
|
- <<: *if-label-weekend_test
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.rules:build_tests:custom_test-weekend_test:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-protected-no_label
|
2020-09-26 23:20:53 -04:00
|
|
|
- <<: *if-label-build
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-label-regular_test
|
|
|
|
- <<: *if-label-custom_test
|
|
|
|
- <<: *if-label-weekend_test
|
2020-09-26 23:20:53 -04:00
|
|
|
|
2020-10-20 03:00:50 -04:00
|
|
|
.rules:build_tests:target_test:
|
2020-09-26 23:20:53 -04:00
|
|
|
rules:
|
2020-10-20 03:00:50 -04:00
|
|
|
- <<: *if-protected-no_label
|
|
|
|
- <<: *if-label-build
|
|
|
|
- <<: *if-label-regular_test
|
|
|
|
- <<: *if-label-example_test
|
|
|
|
- <<: *if-label-custom_test
|
2020-11-29 22:44:37 -05:00
|
|
|
- <<: *if-label-unit_test-all_labels
|
2020-10-21 00:12:28 -04:00
|
|
|
|
|
|
|
.rules:build_tests:target_test-weekend_test:
|
|
|
|
rules:
|
|
|
|
- <<: *if-protected-no_label
|
|
|
|
- <<: *if-label-build
|
|
|
|
- <<: *if-label-regular_test
|
|
|
|
- <<: *if-label-example_test
|
|
|
|
- <<: *if-label-custom_test
|
2020-11-29 22:44:37 -05:00
|
|
|
- <<: *if-label-unit_test-all_labels
|
2020-10-21 00:12:28 -04:00
|
|
|
- <<: *if-label-weekend_test
|