TravisCI status widget

Description
A TravisCI status widget that displays a GIF/logo depending on the current status (failure, success or in progress).

The implementation sets a tiny gopher to do nothing when everything is okay, to dance when a build is in progress and display a tiny alert when there is a build failure.

Here is a small blog post that talks about it.

The code can be found on this gist or you can download this preset and import it into BetterTouchTool directly.

Screenshots
Result

Gopher
output-color-17 gopher output-failure

Controller code (an invisible widget that runs every x seconds to update the status)

TravisCI widget code