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 ``label``, ``style``, and``format`` query params:

- http://host:port/app?action=shield&label=Build%20for%20{app}
- 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.3.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

sloth_ci.ext.shields_io-1.0.3-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for sloth-ci.ext.shields_io-1.0.3.tar.gz
Algorithm Hash digest
SHA256 ea61ab16fe21f42cb6a6ffd5e91ea5b38de8c4ae267a9e3fed3f8d40acbb582c
MD5 036b8c27a9f9dcb162bb3d72a6c93c31
BLAKE2b-256 584279a57efe6f18af8806fa03cabc56988415faf049906c3fde8e8f378eafb2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sloth_ci.ext.shields_io-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 19d07683eb7d3139c2a848185fd38def7e06a1acf28cd3a472a9ff365d297335
MD5 de495f66f7a00ff21adb3796f08f5b7b
BLAKE2b-256 3c92eb03117e63b9c5459af2bde532a09ea33ab002e7b99320d30e48295c4d3c

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