forked from rwl/llvm-j
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
136 lines (121 loc) · 2.84 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
include: /build/gitlab-ci.yml
variables:
PROJECT_PATH: "sosy-lab/software/llvm-j"
GH_REF: "github.com/sosy-lab/llvm-j"
stages:
- images
- dependencies
- build-bindings
- build
- checks
- deploy
download-lib:llvm-6.0:
stage: dependencies
script: "ant -verbose download-library -Dllvm.version=6.0"
artifacts:
paths:
- lib/native
download-lib:llvm-9:
stage: dependencies
script: "ant -verbose download-library -Dllvm.version=9"
artifacts:
paths:
- lib/native
bindings-build:llvm-6.0:
# Do this in the check stage because we want to use the modified bindings
# in the repository for everything else
stage: build-bindings
dependencies:
- build-dependencies
needs:
- build-dependencies
script:
- "ant clean-bindings bindings -Dllvm.version=6.0 -Dllvm.home=/usr/include/llvm-c-6.0/llvm-c"
bindings-build:llvm-9:
# Do this in the check stage because we want to use the modified bindings
# in the repository for everything else
stage: build-bindings
dependencies:
- build-dependencies
needs:
- build-dependencies
script:
- "ant clean-bindings bindings -Dllvm.version=9 -Dllvm.home=/usr/include/llvm-c-9/llvm-c"
build:jdk-11:
dependencies:
- build-dependencies
needs:
- build-dependencies
build:jdk-16:
dependencies:
- build-dependencies
needs:
- build-dependencies
build:llvm-6.0:
stage: build
script: "ant $ANT_PROPS_BUILD jar"
image: ${CI_REGISTRY_IMAGE}/test:jdk-11
dependencies:
- build-dependencies
- bindings-build:llvm-6.0
needs:
- build-dependencies
- bindings-build:llvm-6.0
interruptible: true
artifacts:
paths:
- "bin/"
- "*.jar"
build-project-ecj:llvm-6.0:
stage: checks
script: "ant $ANT_PROPS_BUILD build-project-ecj"
interruptible: true
image: ${CI_REGISTRY_IMAGE}/test:jdk-11
dependencies:
- build-dependencies
- bindings-build:llvm-6.0
needs:
- build-dependencies
- bindings-build:llvm-6.0
# Run unit tests with dependency on download-lib
unit-tests:jdk-11:
dependencies:
- build-dependencies
- build:jdk-11
- download-lib:llvm-9
needs:
- build-dependencies
- build:jdk-11
- download-lib:llvm-9
unit-tests:jdk-16:
dependencies:
- build-dependencies
- build:jdk-16
- download-lib:llvm-9
needs:
- build-dependencies
- build:jdk-16
- download-lib:llvm-9
unit-tests:llvm-6.0:
stage: checks
script: "ant $ANT_PROPS_CHECKS unit-tests-coverage"
interruptible: true
dependencies:
- build-dependencies
- build:llvm-6.0
- download-lib:llvm-6.0
needs:
- build-dependencies
- build:llvm-6.0
- download-lib:llvm-6.0
artifacts:
paths:
- "JUnit.html"
- "JUnit-coverage/"
- "junit/coverage.xml"
when: always
reports:
junit: "junit/TESTS-TestSuites.xml"
reuse:
only:
- web