Sha256: ea6fd0ef8e05fee947a0b5041a6a45c707b6692024f2b65b07160b73b221be1d

Contents?: true

Size: 838 Bytes

Versions: 3

Compression:

Stored size: 838 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)

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

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

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

task default: :ci

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
balboa-0.1.7 Rakefile
balboa-0.1.6 Rakefile
balboa-0.1.5 Rakefile