forked from bmuller/bandit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
43 lines (37 loc) · 1.1 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
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
}