forked from resque/resque-pool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
37 lines (28 loc) · 1007 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
require 'bundler/setup'
require 'bundler/gem_tasks'
# for loading the example config file in config/resque-pool.yml
require 'resque/pool/tasks'
require 'rspec/core/rake_task'
desc "Run fast RSpec code examples"
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = ["-c", "-f progress", "--tag ~slow"]
end
desc "Run all RSpec code examples"
RSpec::Core::RakeTask.new("spec:ci") do |t|
t.rspec_opts = ["-c", "-f progress"]
end
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features) do |c|
c.profile = "rake"
end
task :default => ["spec:ci", :features]
rule(/\.[1-9]$/ => [proc { |tn| "#{tn}.ronn" }]) do |t|
name = Resque::Pool.name.sub('::','-').upcase
version = "%s %s" % [name, Resque::Pool::VERSION.upcase]
manual = '--manual "%s"' % name
organization = '--organization "%s"' % version
sh "ronn #{manual} #{organization} <#{t.source} >#{t.name}"
end
file 'man/resque-pool.1'
file 'man/resque-pool.yml.5'
task :manpages => ['man/resque-pool.1','man/resque-pool.yml.5']