free_mutant/Rakefile
2016-03-22 01:01:21 +00:00

24 lines
482 B
Ruby

require 'devtools'
Devtools.init_rake_tasks
Rake.application.load_imports
task('metrics:mutant').clear
namespace :metrics do
task mutant: :coverage do
arguments = %w[
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'
end
end