mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 07:10:12 +01:00
move coverage to ci rake task
This commit is contained in:
parent
ae11f09d2f
commit
406eb47db7
4 changed files with 17 additions and 26 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue