GithubHelp home page GithubHelp logo

scribu / travis-stats Goto Github PK

View Code? Open in Web Editor NEW
44.0 2.0 22.0 149 KB

Travis CI build charts

Home Page: http://scribu.github.io/travis-stats/

License: GNU Affero General Public License v3.0

HTML 13.91% JavaScript 79.26% CSS 6.83%
travis-ci chart

travis-stats's Introduction

travis-stats

Charts for Travis CI.

Demo: http://scribu.github.io/travis-stats/#wp-cli/wp-cli

Blog post: http://scribu.net/blog/travis-ci-build-stats.html

Private repositories

If you want to show charts for private repositories, you'll have to host the files yourself.

Add a config.json file in the root directory, with an API token:

{
	"travis_api_token": "YOUR TOKEN",
	"travis_api_endpoint": "api.travis-ci.org",
	"travis_endpoint": "travis-ci.org"
}

Important: To avoid getting your API token stolen, configure your server to require basic auth before serving both index.html and config.json.

travis-stats's People

Contributors

colindean avatar nylen avatar patmyron avatar scribu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

travis-stats's Issues

Option to show human start-to-end waiting times

Thanks for travis-stats!

Would it be possible to add an option to chart the actual, start-to-end running time? With more than one build job, the duration isn't so useful because jobs are run concurrently and the real, human waiting time is shorter.

For example, one project has eight jobs (one per Python version) which take between 4 and 9 minutes each. The total duration is about 50 minutes, but because 5 jobs can run concurrently, the actual time I have to wait is about 10 minutes. I'd like to primarily optimise the human waiting time.

The Travis CI API has "started_at" and "finished_at" timestamps:
http://docs.travis-ci.com/api/#builds

Of course, occasionally a job can be manually restarted, causing a longer time. But these are rare and the trend would still be visible.

Thanks!

Filtering by branch

I haven't seen a syntax to filter or regroup results by branches.
This would really be awsome.

travis-ci.com support

It looks like this shows stats from travis-ci.org and not travis-ci.com:
http://scribu.net/travis-stats/#PatMyron/advent-of-code/master
https://travis-ci.com/PatMyron/advent-of-code/builds
https://travis-ci.org/PatMyron/advent-of-code/builds

It looks like .org is being deprecated in favor of .com soon:
https://blog.travis-ci.com/2018-05-02-open-source-projects-on-travis-ci-com-with-github-apps
Over the next several months, we’ll be migrating all travis-ci.org repositories and customers to travis-ci.com

Unable to hit Travis Enterprise locally

Hitting the CORS problem:

d3.v4.min.js:3 

XMLHttpRequest cannot load file:///Users/cdean/Source/travis-stats/config.json. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.

send @ d3.v4.min.js:3

Is there a way to avoid CORS problems on file:// urls for development? Or am I going to have to set up a simple server, e.g. python -m SimpleHTTPServer, in order to do development?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.