move coverage to ci rake task

This commit is contained in:
Reinier Balt 2013-09-24 09:48:21 +02:00
parent ae11f09d2f
commit 406eb47db7
4 changed files with 17 additions and 26 deletions

View file

@ -1 +1,16 @@
task :ci => ['db:migrate', :test, :cucumber]
task :ci do |t|
ENV['RAILS_ENV'] ||= "test"
# test coverage from codeclimate
require "codeclimate-test-reporter"
CodeClimate::TestReporter.start
# local test coverage
require 'simplecov'
SimpleCov.start 'rails'
[:environment, 'db:migrate', 'test:all', 'cucumber'].each do |t|
print "running '#{t}'\n"
Rake::Task[t].invoke
end
end