Roxanne allows you to aggregate the status of Continuous Integration jobs or other sources and to publish the results on a BigVisibleThing™ (traffic light, lava lamp, whatever).
Add this line to your application's Gemfile:
gem 'roxanne'
And then execute:
$ bundle
Or install it yourself as:
$ gem install roxanne
Configuration is stored in a YAML file. By default, Roxanne will search for a config/config.yml
file.
Roxanne is configured by default to only be active between 9am and 20pm during working days. You
may use the activation
section to change the default behavior:
roxanne:
activation:
# Active from monday to wednesday
days: !ruby/range 1..3
# 07:00 to 14:59
timerange: !ruby/range 7...15
Use the consumers
section to specify consumers configuration:
roxanne:
consumers:
jenkins:
class: "Roxanne::Jenkins::Consumer"
host: "192.168.20.30"
port: 8080
use_ssl: false
path: "/api/json"
Use the publisher
section to specify consumers configuration:
roxanne:
publisher:
class: "Roxanne::GPIO::Publisher"
green_pin: 25
orange_pin: 17
red_pin: 27
Start the daemon using the start
command:
bundle exec roxanne start
If you want to specify a configuration file pass its path as the first argument:
bundle exec roxanne start /etc/roxanne/config.yml
Other available commands are obviously stop
, status
and restart
.
Use the Roxanne::Jenkins::Consumer
class. Available options:
- host: the Jenkins host name or IP address
- port: the TCP port the Jenkins service can be reached on
- path: the relative path to the JSON API (
/jenkins/api/json
) - username: the username to use for HTTP Basic Auth
- password: the password to use for HTTP Basic Auth
- disable_certificate_verification : set to true if you use a self-signed SSL certificate
Use the Roxanne::Travis::Consumer
class. Available options:
- organization_or_user: the Github organization or user to pull build states from
Use the Roxanne::GPIO::Consumer
class. Available options:
- green_pin: the GPIO pin to turn on when status changes to green
- orange_pin: the GPIO pin to turn on when status changes to orange
- red_pin: the GPIO pin to turn on when status changes to red
Every 5 seconds, Roxanne will loop to check the status of the consumers:
- if any of the consumers returns
red
the publisher receivered
- if all of the consumers return
green
the publisher receivegreen
- if the previous state was not
green
and one of the consumer returnsorange
the publisher receiveorange
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request