-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
84 lines (72 loc) · 1.43 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
.test:
variables:
GRADLE_USER_HOME: "$CI_PROJECT_DIR/.cache/gradle"
cache:
paths:
- $GRADLE_USER_HOME/caches
- $GRADLE_USER_HOME/wrapper
before_script:
- java -version
- javac -version
- ./gradlew -version
script:
- ./gradlew build jacocoTestReport shadowJar
- ./gradlew publishToMavenLocal
artifacts:
paths:
- build/docs
- build/libs
- build/reports
expire_in: 1 week
lint:
image: python:3.9
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
PRE_COMMIT_HOME: "$CI_PROJECT_DIR/.cache/pre-commit"
PYTHONUSERBASE: "$CI_PROJECT_DIR/.cache/python-user-packages"
cache:
key: "$CI_JOB_NAME"
paths:
- $PIP_CACHE_DIR
- $PRE_COMMIT_HOME
- $PYTHONUSERBASE
before_script:
- python -V
- export PATH="$PATH:$PYTHONUSERBASE/bin"
- pip install --user gitlint pre-commit
script:
- gitlint
- pre-commit run --all-files
jdk8:
extends: .test
image: openjdk:8
jdk9:
extends: .test
image: openjdk:9
jdk10:
extends: .test
image: openjdk:10
jdk11:
extends: .test
image: openjdk:11
jdk12:
extends: .test
image: openjdk:12
jdk13:
extends: .test
image: openjdk:13
jdk14:
extends: .test
image: openjdk:14-slim
jdk15:
extends: .test
image: openjdk:15-slim
jdk16:
extends: .test
image: openjdk:16-slim
jdk17:
extends: .test
image: openjdk:17-slim
jdk18:
extends: .test
image: openjdk:18-slim