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