Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: b107cd2ced
Fetching contributors…

Cannot retrieve contributors at this time

executable file 67 lines (49 sloc) 1.505 kb
#!/usr/bin/env ruby
require 'rubygems'
require "bundler"
Bundler.setup
require 'rake'
require 'rake/gempackagetask'
require "rspec"
require "rspec/core/rake_task"
Rspec::Core::RakeTask.new("spec") do |spec|
spec.pattern = "spec/**/*_spec.rb"
end
desc "Run the Integration Specs (rendering)"
Rspec::Core::RakeTask.new("spec:integration") do |spec|
spec.pattern = "spec/unit/*_spec.rb"
end
desc "Run the Unit Specs"
Rspec::Core::RakeTask.new("spec:unit") do |spec|
spec.pattern = "spec/unit/*_spec.rb"
end
desc "Run all the specs without all the verbose spec output"
Rspec::Core::RakeTask.new('spec:progress') do |spec|
spec.rspec_opts = %w(--format progress)
spec.pattern = "spec/**/*_spec.rb"
end
task :default => :spec
gemspec = eval(File.read('locomotive_liquid.gemspec'))
Rake::GemPackageTask.new(gemspec) do |pkg|
pkg.gem_spec = gemspec
end
desc "build the gem and release it to rubygems.org"
task :release => :gem do
puts "Tagging #{gemspec.version}..."
system "git tag -a #{gemspec.version} -m 'Tagging #{gemspec.version}'"
puts "Pushing to Github..."
system "git push --tags"
puts "Pushing to rubygems.org..."
system "gem push pkg/#{gemspec.name}-#{gemspec.version}.gem"
end
namespace :profile do
task :default => [:run]
desc "Run the liquid profile/perforamce coverage"
task :run do
ruby "performance/shopify.rb"
end
desc "Run KCacheGrind"
task :grind => :run do
system "kcachegrind /tmp/liquid.rubyprof_calltreeprinter.txt"
end
end
Jump to Line
Something went wrong with that request. Please try again.