Skip to content

Commit 855b3f0

Browse files
committed
add jacoco coverage
1 parent 19f473b commit 855b3f0

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

ci.jsonnet

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,15 @@
244244
name: "deploy-binaries-"+platform,
245245
},
246246

247+
local coverageGate = commonBuilder + {
248+
targets: TARGET.weekly,
249+
run +: [
250+
["mx", "--strict-compliance", "--dynamicimports", super.dynamicImports, "--primary", "gate", "--tags", "python-junit", "-B=--force-deprecation-as-warning-for-dependencies"],
251+
['mx', '--jacoco-whitelist-package', 'com.oracle.graal.python', '--jacoco-exclude-annotation', '@GeneratedBy', '--strict-compliance', "--dynamicimports", super.dynamicImports, "--primary", 'gate', '-B=--force-deprecation-as-warning', '--strict-mode', '--tags', "python-junit", '--jacocout', 'html'],
252+
['mx', '--jacoco-whitelist-package', 'com.oracle.graal.python', '--jacoco-exclude-annotation', '@GeneratedBy', 'sonarqube-upload', "-Dsonar.host.url=$SONAR_HOST_URL", "-Dsonar.projectKey=com.oracle.graalvm.python", "-Dsonar.projectName=GraalVM - Python", '--exclude-generated']
253+
],
254+
name: "python-coverage"
255+
} + getPlatform(platform="linux"),
247256
// ------------------------------------------------------------------------------------------------------
248257
//
249258
// the gates
@@ -263,6 +272,9 @@
263272
// style
264273
styleGate,
265274

275+
// coverage
276+
coverageGate,
277+
266278
// graalvm gates
267279
graalVmGate,
268280

mx.graalpython/suite.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@
165165
"dependencies": [
166166
"truffle:ANTLR4_COMPLETE",
167167
],
168+
"jacoco": "include",
168169
"native": True,
169170
"vpath": True,
170171
},
@@ -176,6 +177,7 @@
176177
"sdk:GRAAL_SDK",
177178
"sdk:LAUNCHER_COMMON",
178179
],
180+
"jacoco": "include",
179181
"javaCompliance": "8+",
180182
"checkstyle": "com.oracle.graal.python",
181183
},
@@ -191,6 +193,7 @@
191193
"regex:TREGEX",
192194
],
193195
"buildDependencies": ["com.oracle.graal.python.parser.antlr"],
196+
"jacoco": "include",
194197
"javaCompliance" : "8+",
195198
"checkstyleVersion" : "8.8",
196199
"annotationProcessors": ["truffle:TRUFFLE_DSL_PROCESSOR"],
@@ -208,6 +211,7 @@
208211
"truffle:TRUFFLE_TCK",
209212
"mx:JUNIT"
210213
],
214+
"jacoco": "exclude",
211215
"checkstyle": "com.oracle.graal.python",
212216
"javaCompliance": "8+",
213217
"annotationProcessors": ["truffle:TRUFFLE_DSL_PROCESSOR"],
@@ -222,6 +226,7 @@
222226
"sdk:POLYGLOT_TCK",
223227
"mx:JUNIT"
224228
],
229+
"jacoco": "exclude",
225230
"checkstyle": "com.oracle.graal.python",
226231
"javaCompliance": "8+",
227232
"workingSets": "Truffle,Python",

0 commit comments

Comments
 (0)