lets push coverage data to coveralls when all tests pass

pull/151/head
Philipp Tessenow 12 years ago
parent 759508fcc5
commit 8643925b8a
  1. 2
      .travis.yml
  2. 3
      features/support/env.rb
  3. 4
      spec/spec_helper.rb
  4. 2
      test/test_helper.rb

@ -22,6 +22,8 @@ before_install:
- "sh -e /etc/init.d/xvfb start" - "sh -e /etc/init.d/xvfb start"
before_script: before_script:
- "RAILS_ENV=production bundle exec rake ci:travis:prepare" - "RAILS_ENV=production bundle exec rake ci:travis:prepare"
after_success:
- "RAILS_ENV=production bundle exec rake coveralls:push"
branches: branches:
only: only:
- feature/rails3 - feature/rails3

@ -6,6 +6,9 @@
require 'cucumber/rails' require 'cucumber/rails'
require 'coveralls'
Coveralls.wear_merged!('rails')
# Load paths to ensure they are loaded before the plugin's paths.rbs. # Load paths to ensure they are loaded before the plugin's paths.rbs.
# Plugin's path_to functions rely on being loaded after the core's path_to # Plugin's path_to functions rely on being loaded after the core's path_to
# function, since they call super if they don't match and the core doesn't. # function, since they call super if they don't match and the core doesn't.

@ -2,6 +2,10 @@ require 'rubygems'
# This file is copied to spec/ when you run 'rails generate rspec:install' # This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test' ENV["RAILS_ENV"] ||= 'test'
require 'coveralls'
Coveralls.wear_merged!('rails')
require File.expand_path("../../config/environment", __FILE__) require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails' require 'rspec/rails'

@ -15,7 +15,7 @@
ENV["RAILS_ENV"] = "test" ENV["RAILS_ENV"] = "test"
require 'coveralls' require 'coveralls'
Coveralls.wear!('rails') Coveralls.wear_merged!('rails')
require File.expand_path('../../config/environment', __FILE__) require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help' require 'rails/test_help'

Loading…
Cancel
Save