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

@ -3,6 +3,7 @@ stages :
- sonarqube-check
- compile
- package
- integration-test
sonarqube-check :
stage : sonarqube-check
@ -36,6 +37,17 @@ compile :
- echo "=============== 开始编译任务 ==============="
- mvn compile
# 打包
integration-test:
stage : integration-test
tags :
- linux-maven
only :
- master
script:
- echo "=============== 开始集成测试 ==============="
- mvn test -D test=IntegrationTestSuite
# 打包
package :
stage : package
@ -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>