OCT 1. 更新 gitlab-ci 配置, 支持 测试
This commit is contained in:
parent
92f5016cc2
commit
03303b2d5b
|
@ -3,8 +3,9 @@ stages :
|
||||||
- sonarqube-check
|
- sonarqube-check
|
||||||
- compile
|
- compile
|
||||||
- package
|
- package
|
||||||
|
- integration-test
|
||||||
|
|
||||||
sonarqube-check:
|
sonarqube-check :
|
||||||
stage : sonarqube-check
|
stage : sonarqube-check
|
||||||
tags :
|
tags :
|
||||||
- linux-maven
|
- linux-maven
|
||||||
|
@ -36,6 +37,17 @@ compile :
|
||||||
- echo "=============== 开始编译任务 ==============="
|
- echo "=============== 开始编译任务 ==============="
|
||||||
- mvn compile
|
- mvn compile
|
||||||
|
|
||||||
|
# 打包
|
||||||
|
integration-test:
|
||||||
|
stage : integration-test
|
||||||
|
tags :
|
||||||
|
- linux-maven
|
||||||
|
only :
|
||||||
|
- master
|
||||||
|
script:
|
||||||
|
- echo "=============== 开始集成测试 ==============="
|
||||||
|
- mvn test -D test=IntegrationTestSuite
|
||||||
|
|
||||||
# 打包
|
# 打包
|
||||||
package :
|
package :
|
||||||
stage : package
|
stage : package
|
||||||
|
@ -45,4 +57,4 @@ package :
|
||||||
- master
|
- master
|
||||||
script:
|
script:
|
||||||
- echo "=============== 开始打包任务 ==============="
|
- echo "=============== 开始打包任务 ==============="
|
||||||
- mvn clean package
|
- mvn clean package -DskipTests
|
||||||
|
|
1
pom.xml
1
pom.xml
|
@ -240,7 +240,6 @@
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<skipTests>true</skipTests>
|
|
||||||
<testFailureIgnore>true</testFailureIgnore>
|
<testFailureIgnore>true</testFailureIgnore>
|
||||||
<skip>false</skip>
|
<skip>false</skip>
|
||||||
<includes>
|
<includes>
|
||||||
|
|
Loading…
Reference in New Issue