Travis Listener

Travis Listener is a small library that listen on real time TravisCI API for new builds. It allows to interact as soon as possible with the author of the builds for fixing it for example.

Using the API, I created a dashboard: that lists all the builds that are currently running on TravisCI. This page contains some statistic on the builds such as the number of builds per language per hour, the number of failing/passing, ...

Travis Listener

I also play with a more artistic representation of Travis activity. This page represents each build by is commit message that falls down like rain.


Travis Listener is based on web sockets. You can listen to the websocket to retrieve on real time the Travis builds. Here is an example on how to do it in JavaScript.

var host = '';
var protocol = "ws";
if (window.location.protocol == "https:") {
    protocol = "wss";
var ws = null;
var onmessage = function (e) {
	if ([0] != '{') {
  var data = JSON.parse(
  // data.event = job, updated_job, finished_job
	// content of TravisBuild
function startWS(){
    ws = new WebSocket(protocol + '://' + host);
    if (onmessage != null) {
        ws.onmessage = onmessage;
    ws.onclose = function(){
        // Try to reconnect in 5 seconds
        setTimeout(function(){startWS()}, 5000);
Last Updated: 19/05/2019