forked from Shopify/identity_cache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
49 lines (40 loc) · 965 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/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