Commit b910097b authored by Fabio Pelosin's avatar Fabio Pelosin

[Coveralls] Preliminary support

parent 7557a4ec
......@@ -28,3 +28,5 @@ examples/Podfile
examples/Pods
examples/**/Pods
examples/RelativePathProject/RelativePathProject/RelativePathProject.xcodeproj
coverage/
.coveralls.yml
......@@ -18,6 +18,7 @@ group :development do
gem "bacon"
gem "mocha-on-bacon"
gem "rake"
gem 'coveralls', :require => false
end
group :debugging do
......
......@@ -189,6 +189,8 @@ namespace :spec do
# to be run separately.
#
task :all => :unpack_fixture_tarballs do
ENV['GENERATE_COVERAGE'] = 'true'
title 'Running the 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 'bundler/setup'
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