-
Notifications
You must be signed in to change notification settings - Fork 319
/
Rakefile
55 lines (44 loc) · 1.17 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
require "rubygems"
require "rubygems/package_task"
require "bundler/gem_tasks"
Gem::PackageTask.new(eval(File.read("geminabox.gemspec"))) do |pkg|
end
desc 'Clear out generated packages'
task :clean => [:clobber_package]
require 'rake/testtask'
Rake::TestTask.new("test:integration") do |t|
t.libs << "test" << "lib"
t.pattern = "test/integration/**/*_test.rb"
t.warning = nil
end
Rake::TestTask.new("test:smoke:paranoid") do |t|
t.libs << "test" << "lib"
t.pattern = "test/smoke_test.rb"
t.warning = nil
end
desc "Run the smoke tests, faster."
task "test:smoke" do
$:.unshift("lib").unshift("test")
require "smoke_test"
end
Rake::TestTask.new("test:requests") do |t|
t.libs << "test" << "lib"
t.pattern = "test/requests/**/*_test.rb"
t.warning = nil
end
Rake::TestTask.new("test:units") do |t|
t.libs << "test" << "lib"
t.pattern = "test/units/**/*_test.rb"
t.warning = nil
end
task :st => "test:smoke"
task :test => ["test:units", "test:requests", "test:integration"]
task :default => :test
desc 'Open an irb session preloaded with the gem library'
task :console do
require "irb"
require "geminabox"
ARGV.shift
IRB.start
end
task :c => :console