Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (49 sloc) 1.45 KB
require 'bundler/gem_tasks'
require 'rdoc/task'
require 'rake/testtask'
task :default => [:test_memory]
desc "Create documentation"
Rake::RDocTask.new("doc") { |rdoc|
rdoc.title = "bandit - A multi-armed bandit optmization framework for Rails"
rdoc.rdoc_dir = 'docs'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('players.rdoc')
rdoc.rdoc_files.include('whybandit.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/memory_*.rb']
t.verbose = true
}
desc "Run all unit tests with memcache storage"
Rake::TestTask.new("test_memcache") { |t|
t.libs << "lib"
t.test_files = FileList['test/memcache_*.rb']
t.verbose = true
}
desc "Run all unit tests with dalli storage"
Rake::TestTask.new("test_dalli") { |t|
t.libs << "lib"
t.test_files = FileList['test/dalli_*.rb']
t.verbose = true
}
desc "Run all unit tests with redis storage"
Rake::TestTask.new("test_redis") { |t|
t.libs << "lib"
t.test_files = FileList['test/redis_*.rb']
t.verbose = true
}
desc "Run all unit tests with pstore storage"
Rake::TestTask.new("test_pstore") { |t|
t.libs << "lib"
t.test_files = FileList['test/pstore_*.rb']
t.verbose = true
}
desc "Run all unit tests with yamlstore storage"
Rake::TestTask.new("test_yamlstore") { |t|
t.libs << "lib"
t.test_files = FileList['test/yamlstore_*.rb']
t.verbose = true
}