.gitlab-ci.yml 714 Bytes
Newer Older
Johannes Mey's avatar
Johannes Mey committed
1
stages:
2
3
4
- build
- test
- jar
Johannes Mey's avatar
Johannes Mey committed
5

6
build:
Johannes Mey's avatar
Johannes Mey committed
7
8
9
  image: openjdk:8
  stage: build
  script:
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
    - ./gradlew --console=plain --build-cache assemble
  cache:
    key: "$CI_COMMIT_REF_NAME"
    policy: push
    paths:
      - build
      - .gradle

test:
  image: openjdk:8
  stage: test
  script:
    - ./gradlew --continue --console=plain --info check
  cache:
    key: "$CI_COMMIT_REF_NAME"
    policy: pull
    paths:
      - build
      - .gradle

jar:
  image: openjdk:8
  stage: jar
  script:
    - ./gradlew --continue --console=plain --info jar
  cache:
    key: "$CI_COMMIT_REF_NAME"
    policy: pull
    paths:
      - build
      - .gradle
  artifacts:
    paths:
      - "/builds/jastadd/*/build/libs/*relast*.jar"