Skip to main content

Status build shields for Sloth CI powered by http://shields.io

Project description

Status build badges for Sloth CI apps, powered by http://shields.io.


Installation
------------

.. code-block:: bash

$ pip install sloth-ci.ext.shields_io


Usage
-----

#. Enable the extension in the server config:

.. code-block:: yaml
:caption: sloth.yml for Shields.io

extensions:
shields:
# Use the module sloth_ci.ext.shields_io.
module: shields_io

# Badge label. You can use the ``{app}`` placeholder for the app name
# label: My Sloth CI Status for {app} # default is ``Sloth CI: {app}``

# Badge style: ``plastic``, ``flat``, ``flat-square``, or ``social``
# style: social # default is ``flat``

# Badge format: svg, png, jpg, or gif
# format: png # default is svg

# Color map for build statuses
# colors:
# INFO: green # default is ``brightgreen``
# WARNING: yellowgreen # default is ``yellow``
# ERROR: orange # default is ``red``
...

All params are optional.

#. Use the URL http://host:port/app?action=shield to get your badge.

You can customize the badge on the fly by passing ``style`` and ``format`` query params:

- http://host:port/app?action=shield&style=social
- http://host:port/app?action=shield&format=png

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sloth-ci.ext.shields_io-1.0.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

sloth_ci.ext.shields_io-1.0.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file sloth-ci.ext.shields_io-1.0.2.tar.gz.

File metadata

File hashes

Hashes for sloth-ci.ext.shields_io-1.0.2.tar.gz
Algorithm Hash digest
SHA256 a51996ebc32996ba1a10fc6e3dfa3881cc1c7b190ee1a8f70dfe1330e36ff518
MD5 f4d5a134d1271f1d5eb5062be3dd513c
BLAKE2b-256 fd15376d36b62535c06e3cc1aabac08f2584650b681bc86c3fe16e1080486e93

See more details on using hashes here.

File details

Details for the file sloth_ci.ext.shields_io-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for sloth_ci.ext.shields_io-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 253312ba4860143c2e5fe0592c22b1416434d080c9b6b791c815c4b38afe9355
MD5 cfc5c4d11785a56bcab2942d4232691f
BLAKE2b-256 e05a42c89c1b53749a4991faa0ecc28cd74b3c7b6e99b9d5506c0c70a62e52fa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page