.gitlab-ci.yml 445 Bytes
Newer Older
alexander.weigl's avatar
alexander.weigl committed
1 2
image: key-ant-openjdk-8:latest

alexander.weigl's avatar
alexander.weigl committed
3

alexander.weigl's avatar
alexander.weigl committed
4 5


alexander.weigl's avatar
alexander.weigl committed
6 7 8 9 10 11
cache:
  paths:
    - .m2/

variables:
  MAVEN_OPTS: -Dmaven.repo.local=${CI_PROJECT_DIR}/.m2
12 13
  GIT_SUBMODULE_STRATEGY: recursive

alexander.weigl's avatar
alexander.weigl committed
14 15
  

alexander.weigl's avatar
alexander.weigl committed
16
build:
alexander.weigl's avatar
alexander.weigl committed
17 18 19 20 21 22
  script: "mvn compile -B -T 2"


test: 
  script: "mvn test -B"

alexander.weigl's avatar
alexander.weigl committed
23 24
deploy:
  script: 
alexander.weigl's avatar
alexander.weigl committed
25
    - "mvn package site:site -DperformRelease=true -DcreateChecksum=true -DskipTests=true -B"
alexander.weigl's avatar
alexander.weigl committed
26 27 28
  artifacts: 
    paths:
      - target/*jar
alexander.weigl's avatar
alexander.weigl committed
29 30
      - target/site/*
  allow_failure: true