Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

77 lines (57 sloc) 1.134 kb
#
# Setup
#
load 'tasks/redis.rake'
require 'rake/testtask'
$LOAD_PATH.unshift 'lib'
require 'resque/tasks'
def command?(command)
system("type #{command} > /dev/null 2>&1")
end
#
# Tests
#
task :default => :spec
desc "Run specs for resque-loner"
task :spec do
exec "spec spec"
end
desc "Run resque's test suite to make sure we did not break anything"
task :test do
rg = command?(:rg)
Dir['test/**/*_test.rb'].each do |f|
rg ? sh("rg #{f}") : ruby(f)
end
end
if command? :kicker
desc "Launch Kicker (like autotest)"
task :kicker do
puts "Kicking... (ctrl+c to cancel)"
exec "kicker -e rake test lib examples"
end
end
#
# Install
#
task :install => [ 'redis:install', 'dtach:install' ]
#
# Documentation
#
begin
require 'sdoc_helpers'
rescue LoadError
end
#
# Publishing
#
desc "Push a new version to Gemcutter"
task :publish do
require 'resque/version'
sh "gem build resque.gemspec"
sh "gem push resque-#{Resque::Version}.gem"
sh "git tag v#{Resque::Version}"
sh "git push origin v#{Resque::Version}"
sh "git push origin master"
sh "git clean -fd"
exec "rake pages"
end
Jump to Line
Something went wrong with that request. Please try again.