OCT 1. 更新 gitlab-ci 配置, 支持 测试
This commit is contained in:
parent
92f5016cc2
commit
03303b2d5b
|
@ -1,10 +1,11 @@
|
||||||
# 本次构建的阶段: compile、package、deploy
|
# 本次构建的阶段: compile、package、deploy
|
||||||
stages :
|
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
|
||||||
|
@ -26,7 +27,7 @@ sonarqube-check:
|
||||||
- develop
|
- develop
|
||||||
|
|
||||||
# 编译
|
# 编译
|
||||||
compile :
|
compile :
|
||||||
stage : compile
|
stage : compile
|
||||||
tags :
|
tags :
|
||||||
- linux-maven
|
- linux-maven
|
||||||
|
@ -37,7 +38,18 @@ compile :
|
||||||
- mvn compile
|
- mvn compile
|
||||||
|
|
||||||
# 打包
|
# 打包
|
||||||
package :
|
integration-test:
|
||||||
|
stage : integration-test
|
||||||
|
tags :
|
||||||
|
- linux-maven
|
||||||
|
only :
|
||||||
|
- master
|
||||||
|
script:
|
||||||
|
- echo "=============== 开始集成测试 ==============="
|
||||||
|
- mvn test -D test=IntegrationTestSuite
|
||||||
|
|
||||||
|
# 打包
|
||||||
|
package :
|
||||||
stage : package
|
stage : package
|
||||||
tags :
|
tags :
|
||||||
- linux-maven
|
- linux-maven
|
||||||
|
@ -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