Skip to content

Commit

Permalink
Remove CI specific jobs default
Browse files Browse the repository at this point in the history
[fix #501]
  • Loading branch information
mbj committed Nov 15, 2015
1 parent 9e3d531 commit a25b1b0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
1 change: 1 addition & 0 deletions Changelog.md
@@ -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

Expand Down
21 changes: 12 additions & 9 deletions Rakefile
Expand Up @@ -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
--ignore-subject Mutant::Meta*
--include lib
--require mutant
--since HEAD~1
--ignore-subject Mutant::Meta*
--
Mutant*
]) or fail 'Mutant task is not successful'
--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

Expand Down
4 changes: 1 addition & 3 deletions lib/mutant.rb
Expand Up @@ -188,8 +188,6 @@ def self.ci?
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),
Expand All @@ -203,7 +201,7 @@ class Config
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),
Expand Down

0 comments on commit a25b1b0

Please sign in to comment.