Giter Club home page Giter Club logo

codecov-ruby's Introduction

๐Ÿšจ๐Ÿšจ Deprecation Notice ๐Ÿšจ๐Ÿšจ

This uploader is being deprecated by the Codecov team. We recommend migrating to our new uploader as soon as possible to prevent any lapses in coverage.

You can visit our migration guide for help moving to our new uploader, and our blog post to learn more about our deprecation plan,

On February 1, 2022 this uploader will be completely deprecated and will no longer be able to upload coverage to Codecov.

Codecov Ruby Uploader

Codecov Gem Version Build Status Codecov FOSSA Status

Codecov.io upload support for Ruby.

Quick Start

Add to your Gemfile:

gem 'codecov', require: false, group: 'test'

Add to the top of your tests/helper.rb file:

require 'simplecov'
SimpleCov.start

require 'codecov'
SimpleCov.formatter = SimpleCov::Formatter::Codecov

Add CI Environment Variable:

CODECOV_TOKEN="your repo token"

Find you repo token on your repo page at codecov.io. Repo tokens are not required for public repos on Travis-Ci, CircleCI, or AppVeyor CI.

Supported CIs

CI/CD
AppVeyor CI
Azure Pipelines
Bitbucket Pipelines
Bitrise CI
Buildkite CI
CodeBuild CI
CodePipeline
Circle CI
Codeship CI
Drone CI
GitLab CI
Heroku CI
Jenkins CI
Semaphore CI
Shippable
Solano CI
TeamCity CI
Travis CI
Wercker CI

Advanced Usage

Submit only in CI example

if ENV['CI'] == 'true'
  require 'codecov'
  SimpleCov.formatter = SimpleCov::Formatter::Codecov
end

Useful Links

FAQ Recipe List Error Reference Changelog Support Community Boards

Caveats

  1. There are known issues when Simplecov.track_files is enabled. We recommend that you require all code files in your tests so that SimpleCov can provide Codecov with properly mapped coverage report metrics. codecov/support#133
  1. git must be installed.

Maintainers

Enterprise

For companies using Codecov Enterprise you will need to specify the following parameters:

CODECOV_URL="https://codecov.mycompany.com"
CODECOV_SLUG="owner/repo"
CODECOV_TOKEN="repository token or global token"

License

FOSSA Status

codecov-ruby's People

Contributors

alexwayfer avatar coderanger avatar dependabot-preview[bot] avatar drazisil avatar drazisil-codecov avatar fabrouy avatar fossabot avatar gaborszakacs avatar hecrj avatar hootener avatar jsantos avatar kerrizor avatar klausbadelt avatar locodelassembly avatar mainameiz avatar meganemura avatar mikemcquaid avatar neko314 avatar parekhkb avatar rasarora avatar stevepeak avatar thomasrockhu avatar thomasrockhu-codecov avatar timoschilling avatar uplus avatar y-yagi avatar ysakasin avatar

Watchers

 avatar  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.