-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
37 lines (29 loc) · 695 Bytes
/
Rakefile
File metadata and controls
37 lines (29 loc) · 695 Bytes
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
$LOAD_PATH << '.'
$LOAD_PATH.unshift File.dirname(__FILE__) + "/lib"
require './schema/schema'
require 'rake/testtask'
task :default => ["test_data"]
task :schema do
puts "setting up database"
setup_database
end
task :test_data => ["schema"] do
puts "inserting test data"
require './schema/load_rooms.rb'
load_area "schema/areas/midgaard.are"
end
task :start do
load 'lib/socket_server.rb'
end
Rake::TestTask.new("run_test") { |t|
t.pattern = 'test/*.rb'
t.verbose = true
}
task :test => ["schema", "run_test"] do
end
Rake::TestTask.new("run_func_test") { |t|
t.pattern = 'func_test/*.rb'
t.verbose = true
}
task :func_test => ["test_data", "run_func_test"] do
end