From 5a2f91a4fe67ec112f7de93fd760cd988d060fc6 Mon Sep 17 00:00:00 2001 From: WB01533938 Date: Wed, 10 Jul 2024 17:17:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E7=BA=A7=E7=9B=AE=E5=BD=95=E4=B8=8B?= =?UTF-8?q?=E5=8F=AA=E6=9C=89maintainer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...15\347\275\256\350\247\204\350\214\203.md" | 12 ---- ...13\350\257\225\346\226\207\344\273\266.md" | 69 +++++++++++++++++++ 2 files changed, 69 insertions(+), 12 deletions(-) diff --git "a/CESHI_ZHUANYONG/CI\345\217\212\344\273\243\347\240\201\351\227\250\347\246\201/\346\227\245\345\277\227\346\226\207\344\273\266/710/CI-META\344\273\223\345\272\223\351\205\215\347\275\256\350\247\204\350\214\203.md" "b/CESHI_ZHUANYONG/CI\345\217\212\344\273\243\347\240\201\351\227\250\347\246\201/\346\227\245\345\277\227\346\226\207\344\273\266/710/CI-META\344\273\223\345\272\223\351\205\215\347\275\256\350\247\204\350\214\203.md" index 386ddfe..374dcfc 100644 --- "a/CESHI_ZHUANYONG/CI\345\217\212\344\273\243\347\240\201\351\227\250\347\246\201/\346\227\245\345\277\227\346\226\207\344\273\266/710/CI-META\344\273\223\345\272\223\351\205\215\347\275\256\350\247\204\350\214\203.md" +++ "b/CESHI_ZHUANYONG/CI\345\217\212\344\273\243\347\240\201\351\227\250\347\246\201/\346\227\245\345\277\227\346\226\207\344\273\266/710/CI-META\344\273\223\345\272\223\351\205\215\347\275\256\350\247\204\350\214\203.md" @@ -27,19 +27,7 @@ 当全局配置不能满足某个仓库的测试需求时,可以通过配置repos中的ci.yaml来接入自定义配置,ci.yaml中分为仓库配置,测试配置,通知配置。 ### 仓库配置 -```yaml -#pr,即提交pr就会触发测试,支持gitee平台和github平台 -repo: - git_url: https://gitee.com/anolis/ci-meta.git - trigger_mode: pr -#pull,定时监测指定仓库分支的commit,如果变化则触发测试 -repo: - git_url: https://gitee.com/anolis/ci-meta.git - git_branch: master - trigger_mode: pull - trigger_time: * * * * * #crontab风格时间表达式 -``` ### 测试配置 ```yaml diff --git "a/CESHI_ZHUANYONG/CI\345\217\212\344\273\243\347\240\201\351\227\250\347\246\201/\346\227\245\345\277\227\346\226\207\344\273\266/\346\265\213\350\257\225\346\226\207\344\273\266.md" "b/CESHI_ZHUANYONG/CI\345\217\212\344\273\243\347\240\201\351\227\250\347\246\201/\346\227\245\345\277\227\346\226\207\344\273\266/\346\265\213\350\257\225\346\226\207\344\273\266.md" index e69de29..57890f0 100644 --- "a/CESHI_ZHUANYONG/CI\345\217\212\344\273\243\347\240\201\351\227\250\347\246\201/\346\227\245\345\277\227\346\226\207\344\273\266/\346\265\213\350\257\225\346\226\207\344\273\266.md" +++ "b/CESHI_ZHUANYONG/CI\345\217\212\344\273\243\347\240\201\351\227\250\347\246\201/\346\227\245\345\277\227\346\226\207\344\273\266/\346\265\213\350\257\225\346\226\207\344\273\266.md" @@ -0,0 +1,69 @@ +```yaml +#示例1,引用全局配置 +test: + test_task_1: + tone_test: basic_test + server_config: {product}-anck-x86_64 + +#示例2,覆盖全局配置 +test: + test_task_2: + tone_test: basic_test + basic_test: + tone_test_case: check_license,check_specfile + server_config: {product}-anck-x86_64 + +#示例3,自定义测试配置 +test: + test_task_3: + tone_test: keentune + keentune: + tone_workspace: keentune + tone_project: keentune + tone_test_suite: keentune + tone_test_conf: default + server_config: {product}-anck-x86_64 + +#示例4,自定义脚本配置 +test: + test_task_4: + tone_test: script + entry: test.sh #测试脚本需要放到ci.yaml同级目录中 + server_config: {product}-anck-x86_64 + +#示例5,运行并行测试任务 +test: + test_task_5: + tone_test: basic_test + server_config: {product}-anck-x86_64 + test_task_6: + tone_test: basic_test + server_config: {product}-anck-aarch64 + parallel: + - test_task_5, test_task_6 + +#示例6,运行串行测试任务 +test: + test_task_7: + tone_test: basic_test + server_config: {product}-anck-x86_64 + test_task_8: + tone_test: basic_test + server_config: {product}-anck-aarch64 + parallel: + - test_task_7 + - test_task_8 + +#示例8,扩展T-One配置 +test: + test_task_8: + tone_test: basic_test + basic_test: + tone_test_case: check_license,check_specfile + server_config: {product}-anck-x86_64 + tone_extend: #详细参数请参考 T-One API + need_reboot: 1 + script_info: + - pos: before + script: sleep 10 +``` \ No newline at end of file -- Gitee