Sloth CI的状态生成屏蔽由http://shields.io提供
sloth-ci.ext.shields_io的Python项目详细描述
Sloth CI应用程序的状态生成徽章,由http://shields.io.
代码块::bash
$pip安装sloth ci.ext.shields在服务器配置中启用扩展:
…代码块::yaml
:标题:sloth.yml用于屏蔽。io
您可以使用`{app}`和`{timestamp}`占位符作为app name和build timestamp的占位符。
label:“{app}的我的sloth ci状态”默认为``sloth ci:{app}`
徽章状态。你可以使用``{status}```````````{app}`````````````````{app}``````````{app}````````````````````````````{app}````````````````````````````` app}````````````````````````````````````````````````````````````````````````是的``平面``
徽章格式:SVG、PNG、JPG,或gif格式:png;默认值为svg
#默认为“red”`
…
所有参数都是可选的。
使用url http://host:port/app?action=shield获取徽章。
您可以通过传递“label”、“style”和“format”查询参数动态定制徽章:
-http://host:port/app?action=shield&;label=build%20 for%20{app}
-http://host:port/app?action=shield&style=social
-http://host:port/app?action=shield&format=png
代码块::bash
$pip安装sloth ci.ext.shields在服务器配置中启用扩展:
…代码块::yaml
:标题:sloth.yml用于屏蔽。io
您可以使用`{app}`和`{timestamp}`占位符作为app name和build timestamp的占位符。
label:“{app}的我的sloth ci状态”默认为``sloth ci:{app}`
徽章状态。你可以使用``{status}```````````{app}`````````````````{app}``````````{app}````````````````````````````{app}````````````````````````````` app}````````````````````````````````````````````````````````````````````````是的``平面``
徽章格式:SVG、PNG、JPG,或gif格式:png;默认值为svg
#默认为“red”`
…
所有参数都是可选的。
使用url http://host:port/app?action=shield获取徽章。
您可以通过传递“label”、“style”和“format”查询参数动态定制徽章:
-http://host:port/app?action=shield&;label=build%20 for%20{app}
-http://host:port/app?action=shield&style=social
-http://host:port/app?action=shield&format=png