-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
29 lines (24 loc) · 711 Bytes
/
Rakefile
File metadata and controls
29 lines (24 loc) · 711 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
27
28
29
require 'rake/testtask'
require 'rake/extensiontask'
require 'rake/clean'
Rake::ExtensionTask.new do |ext|
ext.name = 'fast_method_source'
ext.ext_dir = 'ext/fast_method_source'
ext.lib_dir = 'lib/fast_method_source'
end
task :cleanup do
system 'rm -f lib/fast_method_source/fast_method_source.so'
end
task :release do
puts "So you want to release this thing, right?"
puts "Here are your instructions:"
puts " 0. Make sure this guide is up to date"
puts " 1. Update the benchmark in README.md"
puts " 2. Push to RubyGems!"
end
task :test => [:cleanup, :clobber, :compile] do
Rake::TestTask.new do |t|
t.test_files = Dir.glob('test/**/test_*.rb')
end
end
task default: :test