Commit b910097b authored by Fabio Pelosin's avatar Fabio Pelosin

[Coveralls] Preliminary support

parent 7557a4ec
...@@ -28,3 +28,5 @@ examples/Podfile ...@@ -28,3 +28,5 @@ examples/Podfile
examples/Pods examples/Pods
examples/**/Pods examples/**/Pods
examples/RelativePathProject/RelativePathProject/RelativePathProject.xcodeproj examples/RelativePathProject/RelativePathProject/RelativePathProject.xcodeproj
coverage/
.coveralls.yml
...@@ -18,6 +18,7 @@ group :development do ...@@ -18,6 +18,7 @@ group :development do
gem "bacon" gem "bacon"
gem "mocha-on-bacon" gem "mocha-on-bacon"
gem "rake" gem "rake"
gem 'coveralls', :require => false
end end
group :debugging do group :debugging do
......
...@@ -189,6 +189,8 @@ namespace :spec do ...@@ -189,6 +189,8 @@ namespace :spec do
# to be run separately. # to be run separately.
# #
task :all => :unpack_fixture_tarballs do task :all => :unpack_fixture_tarballs do
ENV['GENERATE_COVERAGE'] = 'true'
title 'Running the specs' title 'Running the specs'
sh "bundle exec bacon #{specs('**')}" sh "bundle exec bacon #{specs('**')}"
......
# Set up coverage analysis
#-----------------------------------------------------------------------------#
if ENV['CI'] || ENV['GENERATE_COVERAGE']
require 'simplecov'
require 'coveralls'
if ENV['CI']
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
elsif ENV['GENERATE_COVERAGE']
SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
end
SimpleCov.start do
add_filter "/spec_helper/"
end
end
# Set up
#-----------------------------------------------------------------------------#
require 'rubygems' require 'rubygems'
require 'bundler/setup' require 'bundler/setup'
require 'bacon' require 'bacon'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment