1 Star 0 Fork 0

LvHuaiSheng/TestTwo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.gitlab-ci.yml 1.54 KB
一键复制 编辑 原始数据 按行查看 历史
“lhs” 提交于 2017-11-04 10:56 . a
variables:
# This will supress any download for dependencies and plugins or upload messages which would clutter the console log.
# `showDateTime` will show the passed time in milliseconds. You need to specify `--batch-mode` to make this work.
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
# As of Maven 3.3.0 instead of this you may define these options in `.mvn/maven.config` so the same config is used
# when running from the command line.
# `installAtEnd` and `deployAtEnd` are only effective with recent version of the corresponding plugins.
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
#定义全局缓存文件路径 ↓↓↓
cache:
paths:
- .m2/repository
#.validate: &validate
# stage: build
# script:
# - 'mvn $MAVEN_CLI_OPTS test-compile'
#.verify: &verify
# stage: test
# script:
# - 'mvn $MAVEN_CLI_OPTS verify site site:stage'
# except:
# - master
#检查JDK版本
#validate:jdk8:
# <<: *validate
# image: maven:3.3.9-jdk-8
#verify:jdk8:
# <<: *verify
# image: maven:3.3.9-jdk-8
# artifacts:
# paths:
# - target/staging
# image: maven:3.3.9-jdk-8
# 单元测试
junit:
stage: test
script:
# - 'mvn test'
# - 'mvn surefire-report:report'
- cd ..
- ls
- pwd
- ls
cache:
paths:
- binaries/
- .config
#错误视图(html) ↑↑↑
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sourcenet/TestTwo.git
git@gitee.com:sourcenet/TestTwo.git
sourcenet
TestTwo
TestTwo
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385