Skip to content

CI/CD 集成 ​

CI/CD实现自动化测试和部署。

📋 CI/CD 流程 ​

🎯 GitLab CI 配置示例 ​

yaml
# .gitlab-ci.yml
stages:
  - build
  - test
  - deploy

build:
  stage: build
  script:
    - mvn clean package

test:
  stage: test
  script:
    - mvn test

deploy:
  stage: deploy
  script:
    - docker build -t myapp .
    - docker push myapp

上一章节:性能测试
返回目录:测试能力概览 | 工程架构能力