Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cmdcolin/travigraph

Graph travis-ci build times using command line tools. Deprecated in favor of https://github.com/cmdcolin/travigraphjs
https://github.com/cmdcolin/travigraph

Last synced: 4 days ago
JSON representation

Graph travis-ci build times using command line tools. Deprecated in favor of https://github.com/cmdcolin/travigraphjs

Awesome Lists containing this project

README

        

# Travigraph

This program uses the command line tools for Travis-CI to download the build statistics on a given project
and then it graphs the results using R and ggplot2.

The main program travigraph runs ruby-based travis command line tool to get build times and runs [jq](http://stedolan.github.io/jq/) and plot.R to format the output.

## Pre-requisites

- travis command line tool e.g. `gem install travis`
- jq, a javascript JSON parser `brew install jq`
- R packages e.g. 'ggplot2', 'lubridate', 'scales', 'RColorBrewer'

Note: the travis command line tool should also be authenticated to your account. See http://www.rubydoc.info/gems/travis/1.8.0 for more info.

## Example

![Image](img/output.png)

## Usage

travigraph -r username/repo -s 50 -e 1000

## Required options

-r Repo as username/reponame, doesn't have to be your own! (required)
-s Starting build number to process (required)
-e Ending build number to process (required)

## Other options

-o Output image file. Default: output.png
-t Temp directory to store intermediate files. Default: ./tmpdir
-w Width of image. Default: 1000
-h Height of image. Default: 600
-cached Use pre-existing data that has been downloaded into the tmpdir (and download things that don't yet exist too)
-version Print program version

## Notes

Builds are normally "paged" 25 at a time via the API.

The travis API is case sensitive so the username/reponame should match exactly what is on github