forked from jbotsim/JBotSim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
67 lines (61 loc) · 1.87 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
image: openjdk:10-jdk-slim
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
- chmod +x ./gradlew
cache:
paths:
- .gradle/wrapper
stages:
- build
- test
- publish
assemble-jar:
stage: build
tags:
- docker
script:
- java -version
- ./gradlew lib:cleans lib:jars
artifacts:
paths:
- lib/jbotsim-core/build/libs
- lib/jbotsim-extras-common/build/libs
- lib/jbotsim-extras-swing/build/libs
- lib/jbotsim-icons/build/libs
- lib/jbotsim-ui-common/build/libs
- lib/jbotsim-ui-swing/build/libs
- lib/jbotsim-serialization-common/build/libs
name: jbotsim
run-unit-tests:
stage: test
tags:
- docker
script:
- java -version
- ./gradlew lib:cleans lib:tests
artifacts:
reports:
junit:
- lib/jbotsim-core/build/test-results/test/TEST-*.xml
- lib/jbotsim-extras-common/build/test-results/test/TEST-*.xml
- lib/jbotsim-extras-swing/build/test-results/test/TEST-*.xml
- lib/jbotsim-icons/build/test-results/test/TEST-*.xml
- lib/jbotsim-ui-common/build/test-results/test/TEST-*.xml
- lib/jbotsim-ui-swing/build/test-results/test/TEST-*.xml
- lib/jbotsim-serialization-common/build/test-results/test/TEST-*.xml
paths:
- lib/jbotsim-core/build/test-results
- lib/jbotsim-extras-common/build/test-results
- lib/jbotsim-extras-swing/build/test-results
- lib/jbotsim-icons/build/test-results
- lib/jbotsim-ui-common/build/test-results
- lib/jbotsim-ui-swing/build/test-results
- lib/jbotsim-serialization-common/build/test-results
- lib/jbotsim-core/build/reports
- lib/jbotsim-extras-common/build/reports
- lib/jbotsim-extras-swing/build/reports
- lib/jbotsim-icons/build/reports
- lib/jbotsim-ui-common/build/reports
- lib/jbotsim-ui-swing/build/reports
- lib/jbotsim-serialization-common/build/reports
name: tests