1 Star 0 Fork 27

混世侃/metadata-service

forked from UBML/metadata-service 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.gitlab-ci.yml 2.01 KB
一键复制 编辑 原始数据 按行查看 历史
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:
- environment:cloud
- runner:docker
- namespace:generic
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 clean install
Run Java unit tests:
stage: test
tags:
- environment:cloud
- runner:docker
- namespace:generic
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:
- environment:cloud
- runner:docker
- namespace:generic
only:
- master
cache:
paths:
- .mvn/wrapper/maven-wrapper.jar
- .mvn/wrapper/dists/
- .mvn/repository/
image: openjdk:8-stretch
script:
- chmod a+x ./mvnw
- ./mvnw clean deploy
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/hunshikan/metadata-service.git
git@gitee.com:hunshikan/metadata-service.git
hunshikan
metadata-service
metadata-service
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385