Skip to content

Commit

Permalink
add coveralls settings
Browse files Browse the repository at this point in the history
  • Loading branch information
tbpgr committed Jun 9, 2014
1 parent 885e868 commit 6898587
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
@@ -0,0 +1 @@
service_name: travis-ci
3 changes: 3 additions & 0 deletions Gemfile
Expand Up @@ -7,3 +7,6 @@ gem "simplecov", "~> 0.8.2"
gem "activesupport", "~> 4.0.1"
gem "activemodel", "~> 4.0.2"
gem "tudu", "~> 0.0.4"
group :test do
gem 'coveralls', require: false
end
1 change: 1 addition & 0 deletions README.md
@@ -1,6 +1,7 @@
# Kosi

[![Build Status](https://travis-ci.org/tbpgr/kosi.png?branch=master)](https://travis-ci.org/tbpgr/kosi)
[![Coverage Status](https://coveralls.io/repos/tbpgr/kosi/badge.png)](https://coveralls.io/r/tbpgr/kosi)
[![Code Climate](https://codeclimate.com/github/tbpgr/kosi.png)](https://codeclimate.com/github/tbpgr/kosi)

ターミナルアプリケーション用表フォーマットサポートツール。格子。
Expand Down
4 changes: 2 additions & 2 deletions Rakefile
@@ -1,7 +1,7 @@
require "bundler/gem_tasks"
require 'bundler/gem_tasks'
require 'rspec/core'
require 'rspec/core/rake_task'
task :default => [:spec]
task default: [:spec]

RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = 'spec/**/*_spec.rb'
Expand Down
11 changes: 10 additions & 1 deletion spec/spec_helper.rb
@@ -1,5 +1,14 @@
# encoding: utf-8
require 'simplecov'
SimpleCov.start
require 'coveralls'
Coveralls.wear!
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.start do
add_filter '/spec/'
end
RSpec.configure do |config|
config.treat_symbols_as_metadata_keys_with_true_values = true
config.run_all_when_everything_filtered = true
Expand Down

0 comments on commit 6898587

Please sign in to comment.