free_mutant/Rakefile
Markus Schirp 99ab9ff171 Change required Ruby version to >=2.3
* This commit does every 2.3 change required to get the build pass
* None of the changes can be extracted, without changing the build setup
2018-09-12 14:21:24 +00:00

26 lines
513 B
Ruby

# frozen_string_literal: true
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