Skip to content
Snippets Groups Projects
Commit 037d63da authored by Saralegui Vallejo, Unai's avatar Saralegui Vallejo, Unai
Browse files

add maven ci yml files

parent 2a713ea1
No related branches found
No related tags found
No related merge requests found
variables:
MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode"
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
cache:
paths:
- .m2/repository/
- target/
build:
stage: build
image: tecnalia-docker-dev.artifact.tecnalia.com/maven:latest
script:
- mvn $MAVEN_CLI_OPTS compile
only:
- master
- tags
deploy:
stage: deploy
image: tecnalia-docker-dev.artifact.tecnalia.com/maven:latest
script:
- mvn $MAVEN_CLI_OPTS deploy
only:
- tags
test:
stage: test
image: tecnalia-docker-dev.artifact.tecnalia.com/maven:latest
script:
- mvn $MAVEN_CLI_OPTS test
only:
- master
- tags
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment