Sha256: 0859984f894953b6634e235d52cff17ade4c53026f45f7a79a4aec83632965ea

Contents?: true

Size: 549 Bytes

Versions: 9

Compression:

Stored size: 549 Bytes

Contents

# frozen_string_literal: true

require "rake/testtask"
require "rubocop/rake_task"
require "rspec/core/rake_task"

RuboCop::RakeTask.new

RSpec::Core::RakeTask.new(:spec)

Rake::TestTask.new(:test) do |t|
  t.libs << "test"
  t.libs << "lib"
  t.test_files = FileList["test/**/*_test.rb"]
end

namespace :test do
  task :isolated do
    Dir.glob("test/**/*_test.rb").all? do |file|
      sh(Gem.ruby, "-w", "-Ilib:test", file)
    end || raise("Failures")
  end

  task ci: %w[rubocop test:isolated spec]
end

task default: [:rubocop, :test, :spec]

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
action_policy-0.4.4 Rakefile
action_policy-0.4.3 Rakefile
action_policy-0.4.2 Rakefile
action_policy-0.4.1 Rakefile
action_policy-0.4.0 Rakefile
action_policy-0.3.4 Rakefile
action_policy-0.3.3 Rakefile
action_policy-0.3.2 Rakefile
action_policy-0.3.1 Rakefile