forked from resque/resque
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
40 lines (33 loc) · 941 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
require 'rubygems'
require 'bundler/setup'
require 'bundler/gem_tasks'
require 'resque/tasks'
require 'rake/testtask'
require 'yard'
Rake::TestTask.new do |test|
test.libs << "test/resque"
test.libs << "lib"
test.test_files = FileList['test/resque/**/*_test.rb']
end
Rake::TestTask.new(:legacy) do |test|
test.libs << "test/legacy"
test.libs << "lib"
test.test_files = FileList['test/legacy/**/*_test.rb']
end
Rake::TestTask.new(:verbose_test) do |test|
test.verbose = true
test.libs << "test/resque"
test.libs << "lib"
test.test_files = FileList['test/resque/**/*_test.rb']
test.ruby_opts = ["-w"]
end
Rake::TestTask.new(:verbose_legacy) do |test|
test.libs << "test/legacy"
test.libs << "lib"
test.test_files = FileList['test/legacy/**/*_test.rb']
test.ruby_opts = ["-w"]
end
task :ci => [:verbose_test, :verbose_legacy]
YARD::Rake::YardocTask.new
task :docs => :yard
task :default => [:test, :legacy]