Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Louis
pypimonitor
Commits
3a356c40
Commit
3a356c40
authored
Aug 23, 2016
by
Louis
Browse files
New cell: Gitlab-CI coverage badge
parent
28b9f69b
Pipeline
#8246
failed with stage
in 1458 minutes and 44 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
examples/spalax.yaml
View file @
3a356c40
...
...
@@ -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
:
...
...
pypimonitor/cell/gitlab.py
View file @
3a356c40
...
...
@@ -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'
]
pypimonitor/data/templates/cells/gitlab/gitlabcoverage.html
0 → 100644
View file @
3a356c40
<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>
Louis
@spalax
Mentioned in issue
#3 (closed)
·
Sep 28, 2016
Mentioned in issue
#3 (closed)
Mentioned in issue #3
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment