Your personal status companion.
Command:
$ curl http://{your-badge-site}.herokuapp.com/{project}/{branch}/{status-name} \
-X POST -d "status=passing" -d "color=brightgreen"
Parameter | Value |
---|---|
status | The status anything you want (e.g. passing, failed, 30%, 85% and so on) |
color | ShieldsIO defined colors (http://shields.io) |
Add to "Post build task":
curl ${BUILD_URL}/api/json?tree=result | grep -q "SUCCESS"
if [ $? -eq 0 ]; then
curl http://{your-badge-site}.herokuapp.com/{project}/{branch}/{status-name} \
-X POST -d 'status=passing' -d 'color=brightgreen'
else
curl http://{your-badge-site}.herokuapp.com/{project}/{branch}/{status-name} \
-X POST -d 'status=failing' -d 'color=red'
fi
Paste to README at GitHub such as:
![My status](https://{your-badge-site.herokuapp.com}/{project}/{branch}/{status-name})
© 2012 - 2016 Tomohiro TAIRA.
This project is licensed under the MIT license. See LICENSE for details.