-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathRakefile
57 lines (47 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
require "rake/clean"
require "rake/testtask"
require "rbconfig"
include RbConfig
CLEAN.include("**/*.gem", "**/*.rbc", "**/*.log")
namespace :example do
desc "Run the fork + wait example"
task :fork_wait do
sh "ruby -Ilib examples/example_fork_wait.rb"
end
desc "Run the fork + waitpid example"
task :fork_waitpid do
sh "ruby -Ilib examples/example_fork_waitpid.rb"
end
desc "Run the kill example"
task :kill do
sh "ruby -Ilib examples/example_kill.rb"
end
desc "Run the create example"
task :create do
sh "ruby -Ilib examples/example_create.rb"
end
end
namespace :test do
Rake::TestTask.new(:kill) do |t|
t.verbose = true
t.warning = true
t.test_files = FileList["test/test_win32_process_kill.rb"]
end
end
Rake::TestTask.new do |t|
t.verbose = true
t.warning = true
end
begin
require "yard"
YARD::Rake::YardocTask.new(:docs)
rescue LoadError
puts "yard is not available. bundle install first to make sure all dependencies are installed."
end
task :console do
require "irb"
require "irb/completion"
ARGV.clear
IRB.start
end
task default: :test