Skip to content

Commit 68bc0e6

Browse files
committed
📝 support scm_host in badges.rst.jj2
1 parent 94454e7 commit 68bc0e6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

templates/badges.rst.jj2

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
1+
{% if not scm_host %}
2+
{% set scm_host = 'github.com' %}
3+
{% endif %}
4+
{% if scm_host == 'github.com' %}
15
.. image:: https://api.travis-ci.org/{{organisation}}/{{name}}.svg?branch={{branch}}
26
:target: http://travis-ci.org/{{organisation}}/{{name}}
7+
{% endif %}
38

9+
{% if scm_host == 'github.com' %}
410
.. image:: https://codecov.io/github/{{organisation}}/{{name}}/coverage.png
511
:target: https://codecov.io/github/{{organisation}}/{{name}}
12+
{% elif scm_host == 'gitlab.com' %}
13+
.. image:: https://codecov.io/gitlab/{{organisation}}/{{name}}/coverage.png
14+
:target: https://codecov.io/gitlab/{{organisation}}/{{name}}
15+
{% endif %}
616

717
.. image:: https://img.shields.io/gitter/room/gitterHQ/gitter.svg
818
:target: https://gitter.im/pyexcel/Lobby

0 commit comments

Comments
 (0)