Skip to content

Commit 095f4bf

Browse files
Fix coverage badge
1 parent af1f6f2 commit 095f4bf

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

.travis.yml

+9
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,21 @@ before_install:
1313
branches:
1414
only:
1515
- master
16+
env:
17+
global:
18+
- CC_TEST_REPORTER_ID=b32bade44482d3debfa79056a4843ba58c77802d3fb5d358be90692389eec70a
1619
jobs:
1720
include:
1821
- stage: test
1922
script: bundle exec rake rubocop
2023
- stage: test
24+
before_script:
25+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
26+
- chmod +x ./cc-test-reporter
27+
- ./cc-test-reporter before-build
2128
script: bundle exec rake spec
29+
after_script:
30+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
2231
- stage: build
2332
script: bundle exec rake build
2433
- stage: gem release

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
<!-- [![Gem Version] -->
44

5-
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Build Status](https://travis-ci.org/shreyasbharath/cpp_dependency_graph.svg?branch=master)](https://travis-ci.org/shreyasbharath/cpp_dependency_graph) [![Maintainability](https://api.codeclimate.com/v1/badges/2a07b587ca6fc8b1b3db/maintainability)](https://codeclimate.com/github/shreyasbharath/cpp_dependency_graph/maintainability) [![Codacy](https://api.codacy.com/project/badge/Grade/9439dbb7fde44b5380401acba5325e62)](https://www.codacy.com/app/shreyasbharath/cpp_dependency_graph?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=shreyasbharath/cpp_dependency_graph&amp;utm_campaign=Badge_Grade) [![Test Coverage](https://api.codeclimate.com/v1/badges/2a07b587ca6fc8b1b3db/test_coverage)](https://codeclimate.com/github/shreyasbharath/cpp_dependency_graph/test_coverage) [![Release](https://img.shields.io/github/release/shreyasbharath/cpp_dependency_graph.svg?maxAge=3600)](https://github.com/shreyasbharath/cpp_dependency_graph/releases)
5+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6+
[![Build Status](https://travis-ci.org/shreyasbharath/cpp_dependency_graph.svg?branch=master)](https://travis-ci.org/shreyasbharath/cpp_dependency_graph)
7+
[![Maintainability](https://api.codeclimate.com/v1/badges/2a07b587ca6fc8b1b3db/maintainability)](https://codeclimate.com/github/shreyasbharath/cpp_dependency_graph/maintainability)
8+
[![Codacy](https://api.codacy.com/project/badge/Grade/9439dbb7fde44b5380401acba5325e62)](https://www.codacy.com/app/shreyasbharath/cpp_dependency_graph?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=shreyasbharath/cpp_dependency_graph&amp;utm_campaign=Badge_Grade)
9+
[![Test Coverage](https://api.codeclimate.com/v1/badges/2a07b587ca6fc8b1b3db/test_coverage)](https://codeclimate.com/github/shreyasbharath/cpp_dependency_graph/test_coverage)
10+
[![Release](https://img.shields.io/github/release/shreyasbharath/cpp_dependency_graph.svg?maxAge=3600)](https://github.com/shreyasbharath/cpp_dependency_graph/releases)
611

712
Generates useful component dependency visualisations (`dot` or `d3.js`) to study the architecture of C/C++ projects.
813

cpp_dependency_graph.gemspec

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ Gem::Specification.new do |s|
3434
s.add_runtime_dependency 'parallel', '~> 1.12'
3535

3636
s.add_development_dependency 'bundler', '~> 1.16'
37-
s.add_development_dependency 'coveralls', '~> 0.8'
3837
s.add_development_dependency 'debase', '~> 0.2'
3938
s.add_development_dependency 'rake', '~> 12.3'
4039
s.add_development_dependency 'rspec', '~> 3.7'
4140
s.add_development_dependency 'rubocop', '~> 0.54'
4241
s.add_development_dependency 'ruby-debug-ide', '~> 0.6'
4342
s.add_development_dependency 'ruby-prof', '~> 0.17'
43+
s.add_development_dependency 'simplecov', '~> 0.16'
44+
s.add_development_dependency 'simplecov-console', '~> 0.4'
4445
end

spec/spec_helper.rb

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# frozen_string_literal: true
22

33
require 'bundler/setup'
4+
require 'simplecov'
5+
require 'simplecov-console'
46
require 'cpp_dependency_graph'
57

68
RSpec.configure do |config|
@@ -14,3 +16,6 @@
1416
c.syntax = :expect
1517
end
1618
end
19+
20+
SimpleCov.formatter = SimpleCov.formatter = SimpleCov::Formatter::Console
21+
SimpleCov.start

0 commit comments

Comments
 (0)