tomohiro / badgement

:name_badge: Your personal status companion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Badgement

Your personal status companion.

Heroku Ready

Deploy

Usage

Post your personal status

Command:

$ curl http://{your-badge-site}.herokuapp.com/{project}/{branch}/{status-name} \
    -X POST -d "status=passing" -d "color=brightgreen"

Post parameters

Parameter Value
status The status anything you want (e.g. passing, failed, 30%, 85% and so on)
color ShieldsIO defined colors (http://shields.io)

On Jenkins

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

Get saved your personal status

Paste to README at GitHub such as:

![My status](https://{your-badge-site.herokuapp.com}/{project}/{branch}/{status-name})

LICENSE

© 2012 - 2016 Tomohiro TAIRA.

This project is licensed under the MIT license. See LICENSE for details.

About

:name_badge: Your personal status companion

License:MIT License


Languages

Language:Ruby 100.0%