Remove CI specific jobs default

[fix #501]
This commit is contained in:
Markus Schirp 2015-11-15 23:13:43 +00:00
parent 9e3d531a19
commit a25b1b0307
3 changed files with 15 additions and 13 deletions

View File

@ -1,6 +1,7 @@
# v0.8.8 2015-xx-xx
* Drop support for rspec-3.2
* Remove CI specific job number default
# v0.8.8 2015-11-15

View File

@ -6,18 +6,21 @@ Rake.application.load_imports
task('metrics:mutant').clear
namespace :metrics do
task :mutant => :coverage do
success = Kernel.system(*%w[
task mutant: :coverage do
arguments = %w[
bundle exec mutant
--zombie
--use rspec
--include lib
--require mutant
--since HEAD~1
--ignore-subject Mutant::Meta*
--
Mutant*
]) or fail 'Mutant task is not successful'
--include lib
--since HEAD~1
--require mutant
--use rspec
--zombie
]
arguments.concat(%W[--jobs 4]) if ENV.key?('CIRCLE_CI')
arguments.concat(%w[-- Mutant*])
success = Kernel.system(*arguments) or fail 'Mutant task is not successful'
end
end

View File

@ -188,8 +188,6 @@ require 'mutant/zombifier'
module Mutant
# Reopen class to initialize constant to avoid dep circle
class Config
CI_DEFAULT_PROCESSOR_COUNT = 4
DEFAULT = new(
debug: false,
expected_coverage: Rational(1),
@ -203,7 +201,7 @@ module Mutant
includes: EMPTY_ARRAY,
integration: Integration::Null,
isolation: Mutant::Isolation::Fork,
jobs: Mutant.ci? ? CI_DEFAULT_PROCESSOR_COUNT : ::Parallel.processor_count,
jobs: ::Parallel.processor_count,
matcher: Matcher::Config::DEFAULT,
requires: EMPTY_ARRAY,
reporter: Reporter::CLI.build($stdout),