Sha256: 653e165fd87835f2942e73920b8038ebf1b47ad23bef549c7b51b12ee1021888

Contents?: true

Size: 961 Bytes

Versions: 3

Compression:

Stored size: 961 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
  %w(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

3 entries across 3 versions & 1 rubygems

Version Path
identity_cache-1.1.0 Rakefile
identity_cache-1.0.1 Rakefile
identity_cache-1.0.0 Rakefile