.gitlab-ci.yml 381 Bytes
Newer Older
Alexander Weigl's avatar
Alexander Weigl committed
1
image: maven:3.5.0-jdk-8
Alexander Weigl's avatar
Alexander Weigl committed
2

Alexander Weigl's avatar
Alexander Weigl committed
3
4


Alexander Weigl's avatar
Alexander Weigl committed
5
6
7
8
9
10
11
12
13
cache:
  paths:
    - .m2/

variables:
  MAVEN_OPTS: -Dmaven.repo.local=${CI_PROJECT_DIR}/.m2
  
  

Alexander Weigl's avatar
Alexander Weigl committed
14
build:
Alexander Weigl's avatar
Alexander Weigl committed
15
16
17
18
19
20
  script: "mvn compile -B -T 2"


test: 
  script: "mvn test -B"

Alexander Weigl's avatar
Alexander Weigl committed
21
22
deploy:
  script: 
Alexander Weigl's avatar
Alexander Weigl committed
23
    - "mvn package site:site -DperformRelease=true -DcreateChecksum=true -DskipTests=true -B"
Alexander Weigl's avatar
Alexander Weigl committed
24
25
26
27
  artifacts: 
    paths:
      - target/*jar
      - target/site/*