Merge pull request #502 from mbj/fix/remove-ci-jobs-default
Remove ci jobs default
This commit is contained in:
commit
3cec330660
3 changed files with 15 additions and 13 deletions
|
@ -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
|
||||
|
||||
|
|
23
Rakefile
23
Rakefile
|
@ -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
|
||||
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Add table
Reference in a new issue