Git Product home page Git Product logo

codecov-ruby's Introduction

Codecov Ruby Uploader

DEPRECATION WARNING

All versions of the Ruby uploader prior to 0.2.0 will no longer be supported and will be removed from public use on or after 2020-08-17. Please upgrade to the latest versions to continue using this 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
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

stevepeak avatar thomasrockhu avatar meganemura avatar coderanger avatar alexwayfer avatar hootener avatar mikemcquaid avatar gaborszakacs avatar kerrizor avatar drazisil avatar y-yagi avatar rasarora avatar fossabot avatar fabrouy avatar uplus avatar timoschilling avatar ysakasin avatar mainameiz avatar klausbadelt avatar neko314 avatar parekhkb avatar hecrj avatar locodelassembly avatar

Watchers

James Cloos 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.