forked from datastax/ruby-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
52 lines (38 loc) · 1.12 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
# encoding: utf-8
require 'bundler/setup'
require 'rspec/core/rake_task'
require 'cucumber/rake/task'
require 'rake/testtask'
require 'bundler/gem_tasks'
ENV["FAIL_FAST"] ||= 'Y'
RSpec::Core::RakeTask.new(:rspec => :compile)
Cucumber::Rake::Task.new(:cucumber => :compile)
desc 'Run all tests'
task :test => [:rspec, :integration, :cucumber]
desc 'Generate documentation'
task :docs do
require 'nanoc'
load 'nanoc/setup.rb'
Nanoc::Site.new('.').compile
end
ruby_engine = defined?(RUBY_ENGINE)? RUBY_ENGINE : 'ruby'
case ruby_engine
when 'jruby'
require 'rake/javaextensiontask'
Rake::JavaExtensionTask.new('cassandra_murmur3')
else
require 'rake/extensiontask'
Rake::ExtensionTask.new('cassandra_murmur3')
end
Rake::TestTask.new(:integration => :compile) do |t|
t.libs.push "lib"
t.test_files = FileList['integration/*_test.rb',
'integration/security/*_test.rb',
'integration/load_balancing/*_test.rb']
t.verbose = true
end
Rake::TestTask.new(:stress => :compile) do |t|
t.libs.push "lib"
t.test_files = FileList['integration/stress_tests/*_test.rb']
t.verbose = true
end