Sha256: 85bfc2b2e978307a021e13cc21e56d745457b5904cb5efdea7196a4eaee2f1c4

Contents?: true

Size: 965 Bytes

Versions: 14

Compression:

Stored size: 965 Bytes

Contents

#!/usr/bin/env rake
# frozen_string_literal: true

require "bundler/gem_tasks"

require "rake/testtask"
require "rdoc/task"

desc("Default: run tests and style checks.")
task(default: [:test, :rubocop])

desc("Test the identity_cache plugin.")
Rake::TestTask.new(:test) do |t|
  t.libs << "lib"
  t.libs << "test"
  t.pattern = "test/**/*_test.rb"
  t.verbose = true
end

task :rubocop do
  require "rubocop/rake_task"
  RuboCop::RakeTask.new
end

desc("Update serialization format test fixture.")
task :update_serialization_format do
  ["mysql2", "postgresql"].each do |db|
    ENV["DB"] = db
    ruby "./test/helpers/update_serialization_format.rb"
  end
end

namespace :benchmark do
  desc "Run the identity cache CPU benchmark"
  task :cpu do
    ruby "./performance/cpu.rb"
  end

  task :externals do
    ruby "./performance/externals.rb"
  end
end

namespace :profile do
  desc "Profile IDC code"
  task :run do
    ruby "./performance/profile.rb"
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
identity_cache-1.6.1 Rakefile
identity_cache-1.6.0 Rakefile
identity_cache-1.5.6 Rakefile
identity_cache-1.5.5 Rakefile
identity_cache-1.5.4 Rakefile
identity_cache-1.5.3 Rakefile
identity_cache-1.5.2 Rakefile
identity_cache-1.5.1 Rakefile
identity_cache-1.5.0 Rakefile
identity_cache-1.4.1 Rakefile
identity_cache-1.4.0 Rakefile
identity_cache-1.3.1 Rakefile
identity_cache-1.3.0 Rakefile
identity_cache-1.2.0 Rakefile