brave/badge-matrix

Name: badge-matrix

Owner: Brave Software

Description: More advanced badges for projects using Travis or Sauce Labs

Forked from: exogen/badge-matrix

Created: 2017-06-30 19:29:53.0

Updated: 2017-06-30 19:29:54.0

Pushed: 2017-07-17 19:29:30.0

Homepage:

Size: 130

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

badge-matrix

More advanced badges for your projects using Travis or Sauce Labs.

See it in action over at the script-atomic-onload project.

Contents
Badges

File size for any file on GitHub or npm

Builder package.json size

Victory size

Slice your Travis build matrix by environment

TEST_LOADER=jquery

TEST_LOADER=little-loader

Browser support matrix from Sauce Labs

Browser Status

Beautiful and customizable!

Using something other than Sauce Labs? Just construct a URL with results from your browser tests.

Web Service

Deployed at: https://badges.herokuapp.com/

You may also run your own instance using this package. See the Deployment section.

Endpoints
/browsers

Render browser matrix badge based on support specified in the query parameters, for cases where your testing is done with a service other than Sauce Labs (otherwise use the /sauce endpoint), or you don?t have CI and just want to show your intended support.

Query parameters

/sauce/:user

Render browser support matrix badge for the Sauce Labs account at :user.

Query parameters

/size/:source/:path

Render a file size badge for any file on GitHub or npm.

/travis/:user/:repo

Render build status badge for the Travis project at :user/:repo, counting only build jobs that match the given env filter.

Query parameters

/travis/:user/:repo/sauce/:sauceUser

Render browser support matrix badge for the Travis project at :user/:repo, getting Sauce Labs results from :sauceUser (defaults to :user).

You can also use the /sauce/:user endpoint, but this way ensures that we only consider Sauce Labs jobs that match up with the latest Travis build number for the given branch, and also makes the correct jobs easier to find since Travis provides the time span of the build.

Query parameters

Deployment

If you want to run your own instance of badge-matrix, clone this repo.

Heroku
  1. Create a Heroku app.
  2. npm run add-font will copy Verdana.ttf from wherever it is on your system.
  3. npm run deploy will build the sources and deploy to Heroku.
Anywhere else
  1. npm run build will build the sources.
  2. npm run add-font will copy Verdana.ttf from wherever it is on your system.
  3. npm start will start the server.

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.