Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit 5e555e7

Browse files
committed
CI: create a badge image for code coverage
1 parent 004ea1c commit 5e555e7

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Ruby bindings for MusicBrainz libdiscid
22
[![Gem Version](https://badge.fury.io/rb/discid.svg)](http://badge.fury.io/rb/discid)
3-
[![Maintainability](https://api.codeclimate.com/v1/badges/50e356f4260a127af75b/maintainability)](https://codeclimate.com/github/phw/ruby-discid/maintainability)
4-
[![Test Coverage](https://api.codeclimate.com/v1/badges/50e356f4260a127af75b/test_coverage)](https://codeclimate.com/github/phw/ruby-discid/test_coverage)
3+
[![Test Coverage](https://phw.srht.site/ruby-discid/coverage/coverage_badge_total.svg)](https://phw.srht.site/ruby-discid/coverage/)
54

65
## About
76
ruby-discid provides Ruby bindings for the MusicBrainz DiscID library [libdiscid](http://musicbrainz.org/doc/libdiscid).

discid.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,6 @@ Gem::Specification.new do |spec|
3636
if (RUBY_VERSION.split('.').map{|s|s.to_i} <=> [2, 4, 0]) >= 0
3737
spec.add_development_dependency "simplecov"
3838
spec.add_development_dependency "simplecov_json_formatter"
39+
spec.add_development_dependency "simplecov-small-badge"
3940
end
4041
end

test/helper.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@
1616
begin
1717
require 'simplecov'
1818
require "simplecov_json_formatter"
19+
require 'simplecov_small_badge'
1920

2021
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
2122
SimpleCov::Formatter::JSONFormatter,
22-
SimpleCov::Formatter::HTMLFormatter
23+
SimpleCov::Formatter::HTMLFormatter,
24+
SimpleCovSmallBadge::Formatter
2325
])
2426
SimpleCov.start do
2527
add_filter "/test/"

0 commit comments

Comments
 (0)