ソースを参照

ci: add label rules for integration test

fix typo
Chen Yudong 2 年 前
コミット
9b8d50a8f5
1 ファイル変更5 行追加1 行削除
  1. 5 1
      .gitlab/ci/integration_test.yml

+ 5 - 1
.gitlab/ci/integration_test.yml

@@ -8,7 +8,7 @@
   - "tools/**/*"
   - ".gitlab-ci.yml"
   - ".gitlab/ci/common.yml"
-  - ".gitlab/ci/integration-test.yml"
+  - ".gitlab/ci/integration_test.yml"
   - ".gitmodules"
   - "CMakeLists.txt"
   - "install.sh"
@@ -22,6 +22,10 @@
     - if: '$CI_PIPELINE_SOURCE != "merge_request_event"'
     - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
       changes: *patterns-integration_test
+    # support trigger by ci labels
+    - if: '$CI_MERGE_REQUEST_LABELS =~ /^(?:[^,\n\r]+,)*target_test(?:,[^,\n\r]+)*$/i'
+    - if: '$CI_MERGE_REQUEST_LABELS =~ /^(?:[^,\n\r]+,)*integration_test(?:,[^,\n\r]+)*$/i'
+    - if: '$CI_MERGE_REQUEST_LABELS =~ /^(?:[^,\n\r]+,)*build(?:,[^,\n\r]+)*$/i'
 
 gen_integration_pipeline:
   extends: