Skip to content

Commit ed12395

Browse files
lbalmacedajoshcanhelp
authored andcommitted
add codecov
1 parent 6759810 commit ed12395

File tree

5 files changed

+30
-8
lines changed

5 files changed

+30
-8
lines changed

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ group :test do
1414
gem 'webmock', require: false
1515
gem 'vcr', require: false
1616
gem 'codecov', require: false
17+
gem 'simplecov'
1718
end

Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ DEPENDENCIES
164164
rake (~> 10.4)
165165
rspec (~> 3.1, >= 3.1.0)
166166
rubocop
167-
simplecov (~> 0.9)
167+
simplecov
168168
terminal-notifier-guard
169169
vcr
170170
webmock

README.md

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

33
[![CircleCI](https://img.shields.io/circleci/project/github/auth0/ruby-auth0/master.svg)](https://circleci.com/gh/auth0/ruby-auth0)
44
[![Gem Version](https://badge.fury.io/rb/auth0.svg)](http://badge.fury.io/rb/auth0)
5-
[![Coverage Status](https://coveralls.io/repos/auth0/ruby-auth0/badge.svg?branch=master)](https://coveralls.io/r/auth0/ruby-auth0?branch=master)
5+
[![codecov](https://codecov.io/gh/auth0/ruby-auth0/branch/master/graph/badge.svg)](https://codecov.io/gh/auth0/ruby-auth0)
66
[![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://www.rubydoc.info/github/auth0/ruby-auth0/master/frames)
77
[![MIT licensed](https://img.shields.io/dub/l/vibe-d.svg?style=flat)](https://github.com/auth0/ruby-auth0/blob/master/LICENSE)
88

codecov.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
coverage:
2+
precision: 2
3+
round: down
4+
range: "60...100"
5+
status:
6+
project:
7+
default:
8+
enabled: true
9+
target: auto
10+
threshold: 5%
11+
if_no_uploads: error
12+
patch:
13+
default:
14+
enabled: true
15+
target: 80%
16+
threshold: 30%
17+
if_no_uploads: error
18+
changes:
19+
default:
20+
enabled: true
21+
if_no_uploads: error
22+
comment: false

spec/spec_helper.rb

+5-6
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44
require 'auth0'
55

66
require 'simplecov'
7-
SimpleCov.start do
8-
add_filter '/spec/'
9-
add_filter '/spec/integration'
10-
end
7+
SimpleCov.start
118

12-
require 'codecov'
13-
SimpleCov.formatter = SimpleCov::Formatter::Codecov if ENV['CIRCLECI']
9+
if ENV['CI'] == 'true'
10+
require 'codecov'
11+
SimpleCov.formatter = SimpleCov::Formatter::Codecov
12+
end
1413

1514
require 'dotenv'
1615
Dotenv.load

0 commit comments

Comments
 (0)