-
Notifications
You must be signed in to change notification settings - Fork 26
/
Rakefile
41 lines (34 loc) · 791 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 'rake'
require 'rake/testtask'
Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.test_files=Dir.glob( "test/**/*_test.rb" ).sort
t.verbose = true
end
Rake::TestTask.new(:legacy_test) do |t|
t.libs << "test/legacy"
t.libs << "test"
t.test_files=Dir.glob( "test/**/*_test.rb" ).sort
t.verbose = true
end
task :cleanup do
unless defined?(CassandraObject)
$: << 'test'
$: << 'lib'
require 'test_helper'
end
puts "Clearing keyspace! ..."
CassandraObject::Base.connection.clear_keyspace!
puts "Cleared"
end
task :config_snippet do
unless defined?(CassandraObject)
$: << 'test'
$: << 'lib'
require 'test_helper'
end
puts CassandraObject::Base.storage_config_xml
end
task :default=>[:test, :cleanup] do
end