Commit 3a356c40 authored by Louis's avatar Louis
Browse files

New cell: Gitlab-CI coverage badge

parent 28b9f69b
Pipeline #8246 failed with stage
in 1458 minutes and 44 seconds
......@@ -3,6 +3,10 @@ default:
cell: gitlabci
server: http://framagit.org
user: spalax
Coverage:
cell: gitlabcoverage
server: http://framagit.org
user: spalax
cells:
- color
- homepage
......@@ -12,6 +16,7 @@ cells:
- pypiddownloads
- readthedocs
- CI
- Coverage
packages:
argdispatch:
cahier:
......
......@@ -36,3 +36,13 @@ class CI(Gitlab):
}
required = ['user']
class Coverage(Gitlab):
"""Gitlab-ci coverage badge."""
keyword = "gitlabcoverage"
title = "GitlabCoverage"
default = {
'server': 'http://gitlab.com',
}
required = ['user']
<a href="{{ cell.server }}/{{ cell.user }}/{% if cell.slug %}{{ cell.slug }}{% else %}{{ package }}{% endif %}/builds">
<img src="{{ cell.server }}/{{ cell.user }}/{% if cell.slug %}{{ cell.slug }}{% else %}{{ package }}{% endif %}/badges/master/coverage.svg" alt="Test coverage">
</a>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment