mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
Rakefile
- Updated to run with Ruby 1.9.2-p0 - Fixed some indentations / white spacing
This commit is contained in:
@@ -7,8 +7,7 @@ require 'rake/gempackagetask'
|
|||||||
task :default => 'test'
|
task :default => 'test'
|
||||||
|
|
||||||
Rake::TestTask.new(:test) do |t|
|
Rake::TestTask.new(:test) do |t|
|
||||||
t.libs << "lib"
|
t.libs << '.' << 'lib' << 'test'
|
||||||
t.libs << "test"
|
|
||||||
t.pattern = 'test/*_test.rb'
|
t.pattern = 'test/*_test.rb'
|
||||||
t.verbose = false
|
t.verbose = false
|
||||||
end
|
end
|
||||||
@@ -25,20 +24,18 @@ end
|
|||||||
|
|
||||||
namespace :profile do
|
namespace :profile do
|
||||||
|
|
||||||
|
|
||||||
task :default => [:run]
|
task :default => [:run]
|
||||||
|
|
||||||
desc "Run the liquid profile/perforamce coverage"
|
desc "Run the liquid profile/perforamce coverage"
|
||||||
task :run do
|
task :run do
|
||||||
|
|
||||||
ruby "performance/shopify.rb"
|
ruby "performance/shopify.rb"
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Run KCacheGrind"
|
desc "Run KCacheGrind"
|
||||||
task :grind => :run do
|
task :grind => :run do
|
||||||
system "kcachegrind /tmp/liquid.rubyprof_calltreeprinter.txt"
|
system "kcachegrind /tmp/liquid.rubyprof_calltreeprinter.txt"
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user