"That's a great idea, is anyone interested in implementing it?" ;)
I know of no such thing, but I'm willing to mentor anyone through the process of building it if they're interested. The easiest way is going to be to build an SVG using a Mojolicious template. I've created https://github.com/cpan-testers/cpantesters-web <https://github.com/cpan-testers/cpantesters-web> as a project for sandbox-like stuff, which is deployed to http://beta.cpantesters.org <http://beta.cpantesters.org/>. Adding a "CPAN::Testers::Web::Controller::Badge" controller which responds to a request like "GET /badge/:dist" with a badge for the latest version of the dist should be fairly simple. Making a better API on http://api.cpantesters.org <http://api.cpantesters.org/> to enable badges like this is also something I could help mentor someone through. It'd be a lot faster if the release summary API could be made to return only results from the "latest" version of a dist, and optionally the "latest stable" or "latest development" version of a dist. (https://github.com/cpan-testers/cpantesters-api/issues/9 <https://github.com/cpan-testers/cpantesters-api/issues/9>) I would also hope that someone implementing this work with me to ensure that it is responsive enough. Not all of the APIs are designed to do only this very small thing, which means that a naive implementation could create undue load on the system (with most of the data returned being thrown away). As a last resort, I will add api.cpantesters.org <http://api.cpantesters.org/> to the list of domains we cache through Fastly, but I don't know how much that will affect things like websockets, which I really want to keep providing. Doug Bell d...@preaction.me > On Jul 5, 2017, at 1:56 PM, Nigel Horne <n...@bandsman.co.uk> wrote: > > I know that the downside of suggesting anything is that someone will say > "that's a great idea, why don't you do it", but has anyone thought of, or > better still implemented, a Github badge of CPAN test results (like 90% if > your module is 10% red on matrix.cpantesters.org) you can put into your > README.md file? > > -Nigel
signature.asc
Description: Message signed with OpenPGP