1# Phytium Iot gitlab-ci.yml file
2
3workflow:
4  rules:
5    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
6
7stages:
8  - compile_stage           # 编译阶段
9  - test_stage              # 测试阶段
10
11variables:
12  TERM: xterm  # 设置终端类型
13
14all_soc_compile:
15  stage: compile_stage
16  script:
17    - cd $CI_PROJECT_DIR/bsp/phytium/libraries/tools/auto_test
18    - python3 auto_compile.py
19  tags:
20    - rtthread test
21  allow_failure: true
22  when: manual
23
24all_soc_test:
25  stage: test_stage
26  script:
27    - cd /home/gitlab-runner/test_tool
28    - python3 set_common_info.py /home/gitlab-runner/test_tool/phytium-test-tools/test_tool/config_info/common.json rtthread
29    - cd $CI_PROJECT_DIR/bsp/phytium/libraries/tools/auto_test
30    - python3 auto_compile.py
31    - cd /home/gitlab-runner/test_tool/phytium-test-tools/test_tool
32    - python3 gitlab_pipeline_rtthread_board_test.py
33  tags:
34    - rtthread test
35  allow_failure: true
36  when: manual
37