File tree Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 2
2
pypi-mobans
3
3
================================================================================
4
4
5
- .. image :: https://api.travis-ci.org/moremoban/pypi-mobans.svg?branch=master
5
+ .. image :: https://api.travis-ci.org/moremoban/pypi-mobans.svg
6
6
:target: http://travis-ci.org/moremoban/pypi-mobans
7
7
8
8
.. image :: https://codecov.io/github/moremoban/pypi-mobans/coverage.png
Original file line number Diff line number Diff line change 1
1
{% if not scm_host %}
2
2
{% set scm_host = 'github.com' %}
3
3
{% endif %}
4
+ {% if branch and branch == 'master' %}
5
+ {% set branch = False %}
6
+ {% endif %}
7
+ {% set slug = organisation + '/' + name %}
4
8
{% if scm_host == 'github.com' %}
5
- .. image:: https://api.travis-ci.org/{{organisation}}/{{name}}.svg?branch={{branch}}
6
- :target: http://travis-ci.org/{{organisation}}/{{name}}
9
+ {% if branch %}
10
+ .. image:: https://api.travis-ci.org/{{slug}}.svg?branch={{branch}}
11
+ {% else %}
12
+ .. image:: https://api.travis-ci.org/{{slug}}.svg
13
+ {% endif %}
14
+ :target: http://travis-ci.org/{{slug}}
7
15
{% endif %}
8
16
9
- {% if scm_host == 'github.com' %}
10
- .. image:: https://codecov.io/github/{{organisation}}/{{name}}/coverage.png
11
- :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}}
17
+ {% set base_path = scm_host.split('.')[0] + '/' + slug %}
18
+ {% if branch %}
19
+ {% set suffix = '/branch/' + branch + '/graph/badge.svg' %}
20
+ {% else %}
21
+ {% set suffix = '/coverage.png' %}
15
22
{% endif %}
23
+ .. image:: https://codecov.io/{{base_path}}{{suffix}}
24
+ :target: https://codecov.io/{{base_path}}
16
25
17
26
{% if gitter_room %}
18
27
.. image:: https://img.shields.io/gitter/room/gitterHQ/gitter.svg
You can’t perform that action at this time.
0 commit comments