Sha256: d8c80da03b2619e8e7e73ea58e16ec81734fc9905618027d07b7b1a90baec84c

Contents?: true

Size: 972 Bytes

Versions: 2

Compression:

Stored size: 972 Bytes

Contents

# frozen_string_literal: true

require 'bundler/gem_tasks'

require 'rspec/core/rake_task'
require 'rubocop/rake_task'
require 'reek/rake/task'
require 'cucumber/rake/task'

namespace :quality do
  Reek::Rake::Task.new do |t|
    t.fail_on_error = true
    t.verbose = false
  end

  RuboCop::RakeTask.new do |t|
    t.options << '--display-cop-names'
  end

  task all: [:rubocop, :reek]
end

namespace :test do
  RSpec::Core::RakeTask.new(:spec)

  Cucumber::Rake::Task.new(:features) do |t|
    t.cucumber_opts = 'features --format progress --color'
  end

  task :mutant do
    command = <<-EOS
      RUBY_THREAD_VM_STACK_SIZE=64000\
      bundle exec mutant\
        --include lib\
        --require balboa\
        --use rspec\
        --since master\
        --jobs 4 'Balboa*'
    EOS
    system command
    abort unless $CHILD_STATUS.success?
  end

  task all: ['test:spec', 'test:features', :mutant]
end

task ci: ['test:all', 'quality:all']

task default: :ci

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
balboa-0.1.1 Rakefile
balboa-0.1.0 Rakefile