.gitlab-ci.yml 674 Bytes
Newer Older
Jesper Zedlitz's avatar
Jesper Zedlitz committed
1
services:
Jesper Zedlitz's avatar
CI  
Jesper Zedlitz committed
2
  - docker:19.03.1-dind
Jesper Zedlitz's avatar
Jesper Zedlitz committed
3

Jesper Zedlitz's avatar
CI  
Jesper Zedlitz committed
4
variables:
Jesper Zedlitz's avatar
Jesper Zedlitz committed
5 6
  DOCKER_HOST: "tcp://docker:2375"
  DOCKER_DRIVER: overlay2
Jesper Zedlitz's avatar
CI  
Jesper Zedlitz committed
7
  DOCKER_TLS_CERTDIR: ""
Jesper Zedlitz's avatar
CI  
Jesper Zedlitz committed
8 9
  MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
  MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
10

Jesper Zedlitz's avatar
CI  
Jesper Zedlitz committed
11 12 13
cache:
  paths:
    - .m2/repository
14

Jesper Zedlitz's avatar
CI  
Jesper Zedlitz committed
15
compile:
Jesper Zedlitz's avatar
Jesper Zedlitz committed
16
  image: maven:alpine
Jesper Zedlitz's avatar
CI  
Jesper Zedlitz committed
17 18
  stage: build
  script:
Jesper Zedlitz's avatar
Jesper Zedlitz committed
19
    - mvn -B compile
Jesper Zedlitz's avatar
CI  
Jesper Zedlitz committed
20 21
  tags:
    - docker
Jesper Zedlitz's avatar
Jesper Zedlitz committed
22

Jesper Zedlitz's avatar
Jesper Zedlitz committed
23 24 25
test:
  image: maven:alpine
  stage: test
Jesper Zedlitz's avatar
Jesper Zedlitz committed
26
  script: mvn -B test
Jesper Zedlitz's avatar
CI  
Jesper Zedlitz committed
27 28
  tags:
    - docker