Giter Club home page Giter Club logo

ci-coverage-badge's Introduction

ci-coverage-badge

Build Status codecov.io Dependency Status devDependency Status Commitizen friendly

A tiny web server to generate a code coverage badge from one of several CI providers.

Supported CI Providers

The following CI providers are supported.

Please read the documentation associated with each CI provider to ensure the badger service is setup correctly to serve coverage badges.

Installation and Launching

There are two ways to run this coverage badge server.

First, you can install this package, globally as shown below, and call the executable script that's installed in your $PATH.

npm install --global @hbetts/ci-coverage-badge
ccb [$PORT]

The second approach is to clone this repository, install the package's dependencies, and run the server with npm start:

git clone https://github.com/hbetts/ci-coverage-badge.git
cd ci-coverage-badge
npm install
npm start [$PORT]

When running the server you must provide a port for the server to listed on. The port can be provided as either an argument (As shown above), or by setting the PORT environmental variable before running the server. In the latter case you do not need to pass the port to the server as the server will pull the port value from the PORT environmental variable.

The URL format for fetching a badge is as follows:

localhost:[PORT]/[CI PROVIDER]/

Everything after [CI PROVIDER] is determined by the requirements of the individual CI badge providers. As an example, for the Jenkins provider, the path would be localhost:80/jenkins/cobertura/job/my-project.

ci-coverage-badge's People

Contributors

hutson avatar

Watchers

 avatar

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.