-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathRakefile
More file actions
26 lines (23 loc) · 650 Bytes
/
Rakefile
File metadata and controls
26 lines (23 loc) · 650 Bytes
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
require 'bundler/gem_tasks'
require 'yard'
YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb', 'ext/**/*.c']
t.options << '-rREADME.md'
t.options << '--title=Chess'
t.options << '-mmarkdown'
t.options << '--output-dir=docs'
end
# require 'rdoc/task'
# RDoc::Task.new(:rdoc) do |rd|
# rd.rdoc_dir = 'rdoc'
# rd.rdoc_files.include('lib/**/*.rb', 'ext/**/*.c', 'README.md')
# rd.title = 'Chess'
# rd.main = 'README.md'
# end
require 'rake/testtask'
task default: :test
Rake::TestTask.new do |test|
test.libs += %w[ext lib test]
test.warning = true
test.test_files = FileList["test/test_#{ENV.fetch('T', '*')}.rb"]
end