OCT 1. 更新 gitlab-ci 配置, 支持 测试
This commit is contained in:
parent
92f5016cc2
commit
03303b2d5b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue