You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

169 lines
5.5 KiB

# Phytium Iot gitlab-ci.yml file
3 months ago
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
stages:
- pre_stage # 准备阶段
- compile_stage # 编译阶段
- e2000d_board_test_stage # 测试阶段
- post_stage # 收尾阶段
3 months ago
# 所有soc覆盖编译启动
all_soc_compile:
stage: compile_stage
3 months ago
script:
- echo "All soc config compile is about to start..."
3 months ago
tags:
- compile
when: manual
# 各模块编译
ai_compile:
3 months ago
stage: compile_stage
script:
- cd /home/gitlab-runner/auto_compile_tool/phytium-test-tools/test_tool
- python3 gitlab_pipeline_compile.py $CI_MERGE_REQUEST_PROJECT_PATH $CI_PROJECT_DIR $CI_PROJECT_DIR/example/ai
tags:
- compile
needs: ["all_soc_compile"]
3 months ago
media_compile:
3 months ago
stage: compile_stage
script:
- cd /home/gitlab-runner/auto_compile_tool/phytium-test-tools/test_tool
- python3 gitlab_pipeline_compile.py $CI_MERGE_REQUEST_PROJECT_PATH $CI_PROJECT_DIR $CI_PROJECT_DIR/example/media
tags:
- compile
needs: ["all_soc_compile"]
3 months ago
network_compile:
3 months ago
stage: compile_stage
script:
- cd /home/gitlab-runner/auto_compile_tool/phytium-test-tools/test_tool
- python3 gitlab_pipeline_compile.py $CI_MERGE_REQUEST_PROJECT_PATH $CI_PROJECT_DIR $CI_PROJECT_DIR/example/network
tags:
- compile
needs: ["all_soc_compile"]
3 months ago
peripherals_compile:
3 months ago
stage: compile_stage
script:
- cd /home/gitlab-runner/auto_compile_tool/phytium-test-tools/test_tool
- python3 gitlab_pipeline_compile.py $CI_MERGE_REQUEST_PROJECT_PATH $CI_PROJECT_DIR $CI_PROJECT_DIR/example/peripherals
tags:
- compile
needs: ["all_soc_compile"]
3 months ago
python_compile:
3 months ago
stage: compile_stage
script:
- cd /home/gitlab-runner/auto_compile_tool/phytium-test-tools/test_tool
- python3 gitlab_pipeline_compile.py $CI_MERGE_REQUEST_PROJECT_PATH $CI_PROJECT_DIR $CI_PROJECT_DIR/example/python
tags:
- compile
needs: ["all_soc_compile"]
3 months ago
storage_compile:
3 months ago
stage: compile_stage
script:
- cd /home/gitlab-runner/auto_compile_tool/phytium-test-tools/test_tool
- python3 gitlab_pipeline_compile.py $CI_MERGE_REQUEST_PROJECT_PATH $CI_PROJECT_DIR $CI_PROJECT_DIR/example/storage
tags:
- compile
needs: ["all_soc_compile"]
3 months ago
system_compile:
3 months ago
stage: compile_stage
script:
- cd /home/gitlab-runner/auto_compile_tool/phytium-test-tools/test_tool
- python3 gitlab_pipeline_compile.py $CI_MERGE_REQUEST_PROJECT_PATH $CI_PROJECT_DIR $CI_PROJECT_DIR/example/system
tags:
- compile
needs: ["all_soc_compile"]
3 months ago
# 各模块板级测试
ai_test:
stage: e2000d_board_test_stage
script:
- cd /home/gitlab-runner/test_tool
- python3 set_common_info.py /home/gitlab-runner/test_tool/phytium-test-tools/test_tool/config_info/common.json standalone
- cd /home/gitlab-runner/test_tool/phytium-test-tools/test_tool
- python3 gitlab_pipeline_board_test.py $CI_PROJECT_DIR $CI_PROJECT_DIR/example/ai
tags:
- test
allow_failure: true
when: manual
media_test:
stage: e2000d_board_test_stage
script:
- cd /home/gitlab-runner/test_tool
- python3 set_common_info.py /home/gitlab-runner/test_tool/phytium-test-tools/test_tool/config_info/common.json standalone
- cd /home/gitlab-runner/test_tool/phytium-test-tools/test_tool
- python3 gitlab_pipeline_board_test.py $CI_PROJECT_DIR $CI_PROJECT_DIR/example/media
tags:
- test
allow_failure: true
when: manual
network_test:
stage: e2000d_board_test_stage
script:
- cd /home/gitlab-runner/test_tool
- python3 set_common_info.py /home/gitlab-runner/test_tool/phytium-test-tools/test_tool/config_info/common.json standalone
- cd /home/gitlab-runner/test_tool/phytium-test-tools/test_tool
- python3 gitlab_pipeline_board_test.py $CI_PROJECT_DIR $CI_PROJECT_DIR/example/network
tags:
- test
allow_failure: true
when: manual
peripherals_test:
stage: e2000d_board_test_stage
script:
- cd /home/gitlab-runner/test_tool
- python3 set_common_info.py /home/gitlab-runner/test_tool/phytium-test-tools/test_tool/config_info/common.json standalone
- cd /home/gitlab-runner/test_tool/phytium-test-tools/test_tool
- python3 gitlab_pipeline_board_test.py $CI_PROJECT_DIR $CI_PROJECT_DIR/example/peripherals
tags:
- test
allow_failure: true
when: manual
python_test:
stage: e2000d_board_test_stage
script:
- cd /home/gitlab-runner/test_tool
- python3 set_common_info.py /home/gitlab-runner/test_tool/phytium-test-tools/test_tool/config_info/common.json standalone
- cd /home/gitlab-runner/test_tool/phytium-test-tools/test_tool
- python3 gitlab_pipeline_board_test.py $CI_PROJECT_DIR $CI_PROJECT_DIR/example/python
tags:
- test
allow_failure: true
when: manual
storage_test:
stage: e2000d_board_test_stage
script:
- cd /home/gitlab-runner/test_tool
- python3 set_common_info.py /home/gitlab-runner/test_tool/phytium-test-tools/test_tool/config_info/common.json standalone
- cd /home/gitlab-runner/test_tool/phytium-test-tools/test_tool
- python3 gitlab_pipeline_board_test.py $CI_PROJECT_DIR $CI_PROJECT_DIR/example/storage
tags:
- test
allow_failure: true
when: manual
system_test:
stage: e2000d_board_test_stage
script:
- cd /home/gitlab-runner/test_tool
- python3 set_common_info.py /home/gitlab-runner/test_tool/phytium-test-tools/test_tool/config_info/common.json standalone
- cd /home/gitlab-runner/test_tool/phytium-test-tools/test_tool
- python3 gitlab_pipeline_board_test.py $CI_PROJECT_DIR $CI_PROJECT_DIR/example/system
tags:
- test
allow_failure: true
when: manual