-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
59 lines (51 loc) · 974 Bytes
/
.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
image: gradle:6.0-jdk13
stages:
- build
- validate
- test
variables:
# Disable the Gradle daemon to ensure isolated runs of the CI pipeline.
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
build:
stage: build
script:
gradle --build-cache assemble
cache:
key: "$CI_COMMIT_REF_NAME"
policy: push
paths:
- build/
- .gradle/
checkStyle:
stage: validate
script: gradle checkstyleMain checkstyleTest
cache:
key: "$CI_COMMIT_REF_NAME"
policy: pull
paths:
- build/
- .gradle/
spotBugs:
stage: validate
script: gradle spotbugsMain spotbugsTest
cache:
key: "$CI_COMMIT_REF_NAME"
policy: pull
paths:
- build/
- .gradle/
PMD:
stage: validate
script: gradle pmdMain pmdTest
cache:
key: "$CI_COMMIT_REF_NAME"
policy: pull
paths:
- build/
- .gradle/
test:
stage: test
script:
gradle check