-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
78 lines (70 loc) · 1.64 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
image: docker:git
stages:
- build
- test
- package
before_script:
- echo $MAVEN_SETTINGS > $HOME/.m2/settings.xml
maven-compile-8:
image: maven:3-jdk-8-alpine
stage: build
script:
- ./mvnw -q compile
maven-test-8:
image: maven:3-jdk-8-alpine
stage: test
script:
- ./mvnw -q test
artifacts:
#reports:
# junit: target/surefire-reports/TEST-*.xml
paths:
- target/test-results
expire_in: 1 day
package-8:
image: maven:3-jdk-8-alpine
stage: package
#only:
# - tags
script:
- ./mvnw -q package
artifacts:
paths:
- simple-events/simple-events-sink/target/*.jar
- simple-events/simple-events-source/target/*.jar
- simple-events-condition/simple-events-condition-sink/target/*.jar
- simple-events-condition/simple-events-condition-source/target/*.jar
expire_in: 7 day
maven-compile-11:
image: maven:3-jdk-11-slim
stage: build
script:
- ./mvnw -q compile
allow_failure: true
maven-test-11:
image: maven:3-jdk-11-slim
stage: test
script:
- ./mvnw -q test
artifacts:
#reports:
# junit: target/surefire-reports/TEST-*.xml
paths:
- target/test-results
expire_in: 1 day
allow_failure: true
package-11:
image: maven:3-jdk-11-slim
stage: package
#only:
# - tags
script:
- ./mvnw -q package
artifacts:
paths:
- simple-events/simple-events-sink/target/*.jar
- simple-events/simple-events-source/target/*.jar
- simple-events-condition/simple-events-condition-sink/target/*.jar
- simple-events-condition/simple-events-condition-source/target/*.jar
expire_in: 7 day
allow_failure: true