-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
64 lines (55 loc) · 1.2 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
image: openjdk:8
variables:
PROJECTNAME: "FringeRemover"
before_script:
- java -version
- cd ${PROJECTNAME}
- ls -l
- chmod -R 755 ./*
stages:
- compile
- status
- javadoc
pending:
allow_failure: true
script: curl ${SERVER}ci/pending.sh | bash
stage: compile
success:
allow_failure: true
script: curl ${SERVER}ci/success.sh | bash
when: on_success
stage: status
failure:
allow_failure: true
script: curl ${SERVER}ci/failure.sh | bash
when: on_failure
stage: status
verify:
allow_failure: true
script: curl ${SERVER}ci/javadoc.sh | bash
stage: javadoc
coverage: '/\([0-9]{2,3}\.[0-9]{2}%\)/'
javadoc:
script:
- mkdir ../javadoc
- ./gradlew -PnexusPublic=${NEXUS_PUBLIC} javadoc
- mv ./build/docs/javadoc/* ../javadoc
stage: javadoc
artifacts:
name: "$PROJECTNAME"
expire_in: 1 week
paths:
- javadoc/
compile:
script:
- ./gradlew -PnexusPublic=${NEXUS_PUBLIC} shadowJar
- ./gradlew -PnexusPublic=${NEXUS_PUBLIC} createExe
- mv ./build/libs/* ../
- mv ./build/launch4j/*.exe ../
stage: compile
artifacts:
name: "${PROJECTNAME}"
expire_in: 1 week
paths:
- ${PROJECTNAME}-*.jar
- ${PROJECTNAME}-*.exe