Skip to content

Commit 05a0130

Browse files
committed
Move coverage upload to the ci script
1 parent f654c06 commit 05a0130

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2456,23 +2456,9 @@ def python_coverage(args):
24562456
cmdargs += ["-a", f]
24572457
else:
24582458
mx.warn(f"Skipping {f}")
2459-
24602459
# actually run the merge command
24612460
mx.run(cmdargs)
24622461

2463-
# upload coverage data
2464-
out = mx.OutputCapture()
2465-
mx.run_mx(['sversions', '--print-repositories', '--json'], out=out)
2466-
with tempfile.NamedTemporaryFile(mode='w', encoding='utf-8') as f:
2467-
f.write(out.data)
2468-
f.flush()
2469-
print(f"Associated data", out.data, sep="\n")
2470-
if os.environ.get('CI'):
2471-
mx.run(['coverage-uploader.py', '--associated-repos', f.name])
2472-
else:
2473-
mx.run(['genhtml', '--output-directory', 'coverage-html', '--source-directory', os.path.abspath(os.path.join(SUITE.dir, '..')), '--quiet', 'coverage/lcov.info'])
2474-
print('Generated html report in ./coverage-html')
2475-
24762462

24772463
class GraalpythonBuildTask(mx.ProjectBuildTask):
24782464
class PrefixingOutput():

0 commit comments

Comments
 (0)