Skip to content

Commit

Permalink
Configure coveralls.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Dec 22, 2020
1 parent ad1dc2f commit 3ed4391
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
repo_token: 6TBOCfVJmaf2hdCQLUaO6aFptRqL2sfcK
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ tmp
Gemfile.lock
/.rbx/
/.bundle
coverage
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ group :debug do
gem "byebug", platform: :mri
gem 'awesome_print', github: 'akshaymohite/awesome_print'
end

group :development, :test do
gem 'simplecov', platforms: :mri
gem 'coveralls', '~> 0.8', platforms: :mri
end
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ This is a Ruby implementation of a universal [S-expression][] parser.

[![Gem Version](https://badge.fury.io/rb/sxp.png)](https:/badge.fury.io/rb/sxp)
[![Build Status](https://github.com/dryruby/sxp.rb/workflows/CI/badge.svg?branch=develop)](https://github.com/dryruby/sxp.rb/actions?query=workflow%3ACI)
[![Coverage Status](https://coveralls.io/repos/dryruby/sxp.rb/badge.svg)](https://coveralls.io/r/dryruby/sxp.rb)

## Features

Expand Down
15 changes: 15 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,21 @@

require "bundler/setup"
require 'rspec'

begin
require 'simplecov'
require 'coveralls'
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
])
SimpleCov.start do
add_filter "/spec/"
end
rescue LoadError => e
STDERR.puts "Coverage Skipped: #{e.message}"
end

require 'sxp'

include SXP

0 comments on commit 3ed4391

Please sign in to comment.