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.4.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

sloth_ci.ext.shields_io-1.0.4-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.4.tar.gz.

File metadata

File hashes

Hashes for sloth-ci.ext.shields_io-1.0.4.tar.gz
Algorithm Hash digest
SHA256 633383436ccaf92c2d08387b4070f0d813eb6d7603446d0f8e4ced08c82d9a41
MD5 d6598b6bda127213d93372898442c9c7
BLAKE2b-256 8aec2aa48f6a8c797ebf67c8bb0d5bcc065fa0d7c67436a06a30fb35c13c5b99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sloth_ci.ext.shields_io-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a9c373263f67e29999333700d5277aea1c8b14dc2f11e37744709867a3cca825
MD5 90003bfbfaf5fe9c7f09e8407c7ce72a
BLAKE2b-256 7bef6ecd1e6f10698747a0c17d6c3676504b3bc4842c8c42dc8c38b6c6991add

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