.gitlab-ci.yml 951 B

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