Permalink
Browse files

coveralls!

  • Loading branch information...
hsbt committed Mar 19, 2013
1 parent 8db486d commit a4fea4c640fcb66470845786a18e3747c7000d05
Showing with 33 additions and 19 deletions.
  1. +1 −0 .coveralls.yml
  2. +2 −1 Gemfile
  3. +14 −4 Gemfile.lock
  4. +16 −14 spec/spec_helper.rb
View
@@ -0,0 +1 @@
+service_name: travis-ci
View
@@ -54,11 +54,12 @@ group :development do
gem 'sqlite3'
gem 'rcov', :platforms => :mri_18
- platforms :mri_19 do
+ if RUBY_VERSION > '1.9' # bundler did't provide :mri_20 platform
gem 'simplecov', :require => false
gem 'simplecov-rcov', :require => false
end
gem 'ci_reporter'
+ gem 'coveralls', :require => false
gem 'json' # broken jasmine-1.3.0 dependency
gem 'jasmine', '1.3.0'
View
@@ -26,6 +26,13 @@ GEM
coffee-script-source
execjs
coffee-script-source (1.6.1)
+ colorize (0.5.8)
+ coveralls (0.6.2)
+ colorize
+ multi_json (~> 1.3)
+ rest-client
+ simplecov (>= 0.7)
+ thor
daemons (1.1.9)
diff-lcs (1.2.1)
eventmachine (1.0.3)
@@ -51,7 +58,7 @@ GEM
addressable (~> 2.3)
method_source (0.8.1)
mime-types (1.21)
- multi_json (1.7.0)
+ multi_json (1.7.1)
multipart-post (1.2.0)
net-scp (1.1.0)
net-ssh (>= 2.6.5)
@@ -60,7 +67,7 @@ GEM
net-ssh (2.6.6)
net-ssh-gateway (1.2.0)
net-ssh (>= 2.6.5)
- nokogiri (1.5.6)
+ nokogiri (1.5.7)
oauth (0.4.7)
oauth2 (0.8.1)
faraday (~> 0.8)
@@ -101,6 +108,8 @@ GEM
rake (10.0.3)
rcov (1.0.0)
redcarpet (2.2.2)
+ rest-client (1.6.7)
+ mime-types (>= 1.16)
rspec (2.13.0)
rspec-core (~> 2.13.0)
rspec-expectations (~> 2.13.0)
@@ -134,12 +143,12 @@ GEM
tapp (1.4.0)
thor
test-unit (2.5.4)
- thin (1.5.0)
+ thin (1.5.1)
daemons (>= 1.0.9)
eventmachine (>= 0.12.6)
rack (>= 1.0.0)
thor (0.17.0)
- tilt (1.3.5)
+ tilt (1.3.6)
twitter-text (1.6.1)
unf (~> 0.0.5)
unf (0.0.5)
@@ -159,6 +168,7 @@ DEPENDENCIES
capybara
ci_reporter
coffee-script
+ coveralls
jasmine (= 1.3.0)
json
launchy
View
@@ -4,23 +4,25 @@
ENV['RACK_ENV'] = "test"
require 'tdiary/environment'
-require 'tdiary'
-if ENV['COVERAGE'] == 'simplecov'
- require 'simplecov'
- require 'simplecov-rcov'
- class SimpleCov::Formatter::MergedFormatter
- def format(result)
- SimpleCov::Formatter::HTMLFormatter.new.format(result)
- SimpleCov::Formatter::RcovFormatter.new.format(result)
- end
- end
- SimpleCov.formatter = SimpleCov::Formatter::MergedFormatter
- SimpleCov.start do
- add_filter '/spec/'
- add_filter '/vendor/'
+require 'simplecov'
+require 'simplecov-rcov'
+class SimpleCov::Formatter::MergedFormatter
+ def format(result)
+ SimpleCov::Formatter::HTMLFormatter.new.format(result)
+ SimpleCov::Formatter::RcovFormatter.new.format(result)
end
end
+SimpleCov.formatter = SimpleCov::Formatter::MergedFormatter
+SimpleCov.start do
+ add_filter '/spec/'
+ add_filter '/vendor/'
+end
+
+require 'coveralls'
+Coveralls.wear!
+
+require 'tdiary'
RSpec.configure do |config|
config.treat_symbols_as_metadata_keys_with_true_values = true

0 comments on commit a4fea4c

Please sign in to comment.