Skip to content

Commit 7f4d7c1

Browse files
authored
Merge pull request #30 from fastruby/feature/codecov-badge
Feature/codecov badge
2 parents ab68427 + 1205a3c commit 7f4d7c1

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

Gemfile.lock

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ GEM
1919
byebug (11.0.1)
2020
codeclimate-engine-rb (0.4.1)
2121
virtus (~> 1.0)
22+
codecov (0.1.16)
23+
json
24+
simplecov
25+
url
2226
coercible (1.0.0)
2327
descendants_tracker (~> 0.0.1)
2428
descendants_tracker (0.0.4)
@@ -37,6 +41,7 @@ GEM
3741
sexp_processor (~> 4.8)
3842
ice_nine (0.11.2)
3943
jaro_winkler (1.5.4)
44+
json (2.3.0)
4045
kwalify (0.7.2)
4146
launchy (2.4.3)
4247
addressable (~> 2.3)
@@ -92,6 +97,7 @@ GEM
9297
thread_safe (0.3.6)
9398
tty-which (0.4.2)
9499
unicode-display_width (1.6.0)
100+
url (0.3.2)
95101
virtus (1.0.5)
96102
axiom-types (~> 0.1)
97103
coercible (~> 1.0)
@@ -104,6 +110,7 @@ PLATFORMS
104110
DEPENDENCIES
105111
bundler (~> 2.0)
106112
byebug (~> 11)
113+
codecov (~> 0.1.16)
107114
minitest (~> 5.8.4)
108115
minitest-around (~> 0.5.0)
109116
rake (~> 10.0)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
![skunk](https://github.com/fastruby/skunk/raw/master/logo.png)
44

55

6-
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v1.4%20adopted-ff69b4.svg)](code-of-conduct.md) [![Build Status](https://travis-ci.org/fastruby/skunk.svg?branch=master)](https://travis-ci.org/fastruby/skunk) [![Maintainability](https://api.codeclimate.com/v1/badges/3e33d701ced16eee2420/maintainability)](https://codeclimate.com/github/fastruby/skunk/maintainability) [![Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://rubydoc.info/gems/skunk)
6+
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v1.4%20adopted-ff69b4.svg)](code-of-conduct.md) [![Build Status](https://travis-ci.org/fastruby/skunk.svg?branch=master)](https://travis-ci.org/fastruby/skunk) [![Maintainability](https://api.codeclimate.com/v1/badges/3e33d701ced16eee2420/maintainability)](https://codeclimate.com/github/fastruby/skunk/maintainability) [![Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://rubydoc.info/gems/skunk) [![codecov](https://codecov.io/gh/fastruby/skunk/branch/master/graph/badge.svg)](https://codecov.io/gh/fastruby/skunk)
77

88
A RubyCritic extension to calculate StinkScore for a file or project.
99

skunk.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Gem::Specification.new do |spec|
4141

4242
spec.add_development_dependency "bundler", "~> 2.0"
4343
spec.add_development_dependency "byebug", "~> 11"
44+
spec.add_development_dependency "codecov", "~> 0.1.16"
4445
spec.add_development_dependency "minitest", "~> 5.8.4"
4546
spec.add_development_dependency "minitest-around", "~> 0.5.0"
4647
spec.add_development_dependency "rake", "~> 10.0"

test/test_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
if ENV["COVERAGE"] == "true"
44
require "simplecov"
55
require "simplecov-console"
6+
require "codecov"
67

78
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
89
SimpleCov::Formatter::HTMLFormatter,
910
SimpleCov::Formatter::Console,
11+
SimpleCov::Formatter::Codecov,
1012
]
1113

1214
SimpleCov.start do

0 commit comments

Comments
 (0)