OCT 1. 更新 gitlab-ci 配置, 支持 测试

This commit is contained in:
黄昕 2024-03-05 15:43:00 +08:00
parent 92f5016cc2
commit 03303b2d5b
2 changed files with 17 additions and 6 deletions

View File

@ -1,10 +1,11 @@
# 本次构建的阶段: compile、package、deploy
stages :
stages :
- sonarqube-check
- compile
- package
- integration-test
sonarqube-check:
sonarqube-check :
stage : sonarqube-check
tags :
- linux-maven
@ -26,7 +27,7 @@ sonarqube-check:
- develop
# 编译
compile :
compile :
stage : compile
tags :
- linux-maven
@ -37,7 +38,18 @@ compile :
- mvn compile
# 打包
package :
integration-test:
stage : integration-test
tags :
- linux-maven
only :
- master
script:
- echo "=============== 开始集成测试 ==============="
- mvn test -D test=IntegrationTestSuite
# 打包
package :
stage : package
tags :
- linux-maven
@ -45,4 +57,4 @@ package :
- master
script:
- echo "=============== 开始打包任务 ==============="
- mvn clean package
- mvn clean package -DskipTests

View File

@ -240,7 +240,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
<testFailureIgnore>true</testFailureIgnore>
<skip>false</skip>
<includes>