.gitlab-ci.yml added

This commit is contained in:
2019-02-11 10:21:51 +00:00
parent d9757345f8
commit 2d03bde49d

31
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,31 @@
image: maven:latest
variables:
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
cache:
paths:
- .m2/repository
stages:
- build
- test
- package
build:
stage: build
script:
- mvn $MAVEN_CLI_OPTS compile
test:
stage: test
script:
- mvn $MAVEN_CLI_OPTS test
package:
stage: package
script:
-mvn $MAVEN_CLI_OPTS package
artifacts:
paths:
- target/*jar-with-dependencies.jar