Sha256: 6663a4c2b621b3f216d94cbd7ebbc012556bc72554df2e8dbefdd7bd5616e24f

Contents?: true

Size: 973 Bytes

Versions: 3

Compression:

Stored size: 973 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

3 entries across 3 versions & 1 rubygems

Version Path
balboa-0.1.4 Rakefile
balboa-0.1.3 Rakefile
balboa-0.1.2 Rakefile