device-mgt-core/.gitlab-ci.yml
Charitha Goonetilleke f847e4e733 Update .gitlab-ci.yml
2018-10-30 09:44:17 +00:00

26 lines
484 B
YAML

image: shinyay/docker-mvn-jdk8:3.5.0
variables:
MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode --errors --show-version"
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
cache:
paths:
- .m2/repository/
build:
stage: build
script:
- mvn $MAVEN_CLI_OPTS clean install -Dmaven.test.skip=true
test:
stage: test
script:
- mvn $MAVEN_CLI_OPTS test
deploy:
stage: deploy
script:
- mvn $MAVEN_CLI_OPTS deploy -Dmaven.test.skip=true
only:
- master