.gitlab-ci.yml added
This commit is contained in:
31
.gitlab-ci.yml
Normal file
31
.gitlab-ci.yml
Normal 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
|
||||||
|
|
||||||
Reference in New Issue
Block a user