1 Star 0 Fork 18

hao小fly/metadata-common

forked from UBML/metadata-common 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.gitlab-ci.yml 1.98 KB
一键复制 编辑 原始数据 按行查看 历史
李斌 提交于 2022-08-31 19:31 . 初始仓库内容
stages:
- build
- test
- package
- deploy
variables:
# Maven
MAVEN_OPTS: -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true
# MAVEN_CONFIG: --batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true -s .mvn/settings.xml
MAVEN_CONFIG: --batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=false -s .mvn/settings.xml
MAVEN_USER_HOME: .mvn/
before_script:
- echo _auth=$(echo -n $ARTIFACTS_REPO_USERNAME:$ARTIFACTS_REPO_PASSWORD | base64) >> .npmrc
Build with Maven:
stage: build
tags:
- alicloud
except:
variables:
- $CI_COMMIT_MESSAGE =~ /^Helm debug:\ .*/
cache:
paths:
- .mvn/wrapper/maven-wrapper.jar
- .mvn/wrapper/dists/
- .mvn/repository/
image: openjdk:8-stretch
script:
- chmod a+x ./mvnw
- ./mvnw -DskipTests=true clean install
# artifacts:
# paths:
# - caf-boot-parent/target/app.jar
# expire_in: 10d
Run Java unit tests:
stage: test
tags:
- alicloud
except:
variables:
- $CI_COMMIT_MESSAGE =~ /^Helm debug:\ .*/
cache:
paths:
- .mvn/wrapper/maven-wrapper.jar
- .mvn/wrapper/dists/
- .mvn/repository/
services:
- name: redis:latest
alias: redis
- name: postgres:10
alias: postgres
image: openjdk:8-stretch
script:
- chmod a+x ./mvnw
- ./mvnw -U clean clover:setup test clover:aggregate clover:clover
- ./mvnw -Dmaven.clover.singleCloverDatabase=true clover:log
coverage: '/^ {8}Total\: (\d+%|\d+\.\d+%)/'
artifacts:
paths:
- target/site/clover
expire_in: 10d
dependencies: []
Package:
stage: package
tags:
- alicloud
only:
- main
- dev
cache:
paths:
- .mvn/wrapper/maven-wrapper.jar
- .mvn/wrapper/dists/
- .mvn/repository/
image: openjdk:8-stretch
script:
- chmod a+x ./mvnw
- ./mvnw -DskipTests=true clean deploy
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/haoxiaofei666/metadata-common.git
git@gitee.com:haoxiaofei666/metadata-common.git
haoxiaofei666
metadata-common
metadata-common
master

搜索帮助