free_mutant/Rakefile

27 lines
513 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
2018-09-12 13:15:43 +00:00
require 'devtools'
2013-07-30 00:17:04 +00:00
Devtools.init_rake_tasks
2015-07-24 15:01:42 +00:00
Rake.application.load_imports
2014-05-07 18:15:39 +00:00
2015-07-24 15:01:42 +00:00
task('metrics:mutant').clear
namespace :metrics do
task mutant: :coverage do
arguments = %w[
2015-07-24 15:01:42 +00:00
bundle exec mutant
--include lib
--since HEAD~1
--require mutant
--use rspec
--zombie
]
arguments.concat(%w[--jobs 4]) if ENV.key?('CIRCLECI')
arguments.concat(%w[-- Mutant*])
Kernel.system(*arguments) or fail 'Mutant task is not successful'
2014-06-02 15:15:04 +00:00
end
end