forked from geminabox/geminabox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
40 lines (31 loc) · 930 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 "rubygems/package_task"
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"
end
Rake::TestTask.new("test:smoke:paranoid") do |t|
t.libs << "test" << "lib"
t.pattern = "test/smoke_test.rb"
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"
end
Rake::TestTask.new("test:units") do |t|
t.libs << "test" << "lib"
t.pattern = "test/units/**/*_test.rb"
end
task :st => "test:smoke"
task :test => ["test:units", "test:requests", "test:integration"]
task :default => :test