OCT 1. 更新 gitlab-ci 配置, 支持 测试
This commit is contained in:
parent
db4adaa15a
commit
102c062ae9
|
@ -3,27 +3,6 @@ stages :
|
|||
- compile
|
||||
- integration-test
|
||||
|
||||
sonarqube-check :
|
||||
stage : sonarqube-check
|
||||
tags :
|
||||
- linux-maven
|
||||
image : maven:3-eclipse-temurin-17
|
||||
variables :
|
||||
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
|
||||
GIT_DEPTH : "0" # Tells git to fetch all the branches of the project, required by the analysis task
|
||||
cache :
|
||||
key : "${CI_JOB_NAME}"
|
||||
paths:
|
||||
- .sonar/cache
|
||||
script :
|
||||
- mvn verify sonar:sonar
|
||||
allow_failure: true
|
||||
only :
|
||||
- merge_requests
|
||||
- master
|
||||
- main
|
||||
- develop
|
||||
|
||||
# 编译
|
||||
compile :
|
||||
stage : compile
|
||||
|
@ -45,14 +24,3 @@ integration-test:
|
|||
script:
|
||||
- echo "=============== 开始集成测试 ==============="
|
||||
- mvn test
|
||||
|
||||
# 打包
|
||||
package :
|
||||
stage : package
|
||||
tags :
|
||||
- linux-maven
|
||||
only :
|
||||
- master
|
||||
script:
|
||||
- echo "=============== 开始打包任务 ==============="
|
||||
- mvn clean package -DskipTests
|
||||
|
|
Loading…
Reference in New Issue