Skip to content

Commit

Permalink
Use coveralls with travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenk committed Jan 18, 2016
1 parent 054ed38 commit 2fab6fc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
service_name: travis-ci
5 changes: 4 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

require 'coveralls/rake/task'
Coveralls::RakeTask.new

require File.expand_path('../lib/rake/task.rb', __FILE__)
require File.expand_path('../config/application', __FILE__)

Expand All @@ -28,4 +31,4 @@ Rake::Task['default'].prerequisites.delete('cucumber')
Rake::Task['default'].enhance([:'test:abort_if_elasticsearch_is_not_running'])
Rake::Task['default'].enhance([:'test:enable_coverage'])
Rake::Task['default'].enhance([:'test:freshen_fixtures'])
task :default => [:spec, :cucumber]
task :default => [:spec, :cucumber, 'coveralls:push']
3 changes: 3 additions & 0 deletions features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
# files.
require 'simplecov'
require 'coveralls'
Coveralls.wear_merged!('rails')

require 'sidekiq/testing'
require 'cucumber/rails'
require 'capybara/poltergeist'
Expand Down
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
ENV["RAILS_ENV"] ||= 'test'

require 'simplecov'
require 'coveralls'
Coveralls.wear_merged!('rails')

require File.expand_path("../../config/environment", __FILE__)
require File.expand_path("../hets_helper", __FILE__)
require 'rspec/rails'
Expand Down

0 comments on commit 2fab6fc

Please sign in to comment.