Sha256: 59decc3b403428cbdd811a80940ce6e1bf028ec2597ef56633411c703fea7929

Contents?: true

Size: 1.15 KB

Versions: 3

Compression:

Stored size: 1.15 KB

Contents

require 'rubygems'
require 'bundler'
require 'rake/testtask'
require 'rdoc/task'

Bundler::GemHelper.install_tasks

desc "Create documentation"
RDoc::Task.new("doc") { |rdoc|
  rdoc.title = "Ankusa - Naive Bayes classifier with big data storage"
  rdoc.rdoc_dir = 'docs'
  rdoc.rdoc_files.include('README.rdoc')
  rdoc.rdoc_files.include('lib/**/*.rb')
}

desc "Run all unit tests with memory storage"
Rake::TestTask.new("test_memory") { |t|
  t.libs << "lib"
  t.test_files = FileList['test/hasher_test.rb', 'test/memory_classifier_test.rb']
  t.verbose = true
}

desc "Run all unit tests with HBase storage"
Rake::TestTask.new("test_hbase") { |t|
  t.libs << "lib"
  t.test_files = FileList['test/hasher_test.rb']
  t.verbose = true
}

desc "Run all unit tests with Cassandra storage"
Rake::TestTask.new("test_cassandra") { |t|
  t.libs << "lib"
  t.test_files = FileList['test/hasher_test.rb', 'test/cassandra_classifier_test.rb']
  t.verbose = true
}

desc "Run all unit tests with FileSystem storage"
Rake::TestTask.new("test_filesystem") { |t|
  t.libs << "lib"
  t.test_files = FileList['test/hasher_test.rb', 'test/file_system_classifier_test.rb']
  t.verbose = true
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ankusa-0.0.12 Rakefile
ankusa-0.0.11 Rakefile
ankusa-0.0.10 Rakefile