Update .gitlab-ci.yml

This commit is contained in:
Fabrizio La Rosa 2020-06-15 01:18:23 +00:00
parent 3c602e84aa
commit 7fe0d4e72e

View File

@ -1,9 +1,5 @@
image: maven:latest
variables:
MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode"
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
cache:
paths:
- .m2/repository/
@ -12,9 +8,9 @@ cache:
build:
stage: build
script:
- mvn $MAVEN_CLI_OPTS compile
- mvn compile
test:
stage: test
script:
- mvn $MAVEN_CLI_OPTS test
- mvn test