-
Notifications
You must be signed in to change notification settings - Fork 5
/
Rakefile
42 lines (31 loc) · 911 Bytes
/
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
require 'rspec/core/rake_task'
require 'bundler/gem_tasks'
RSpec::Core::RakeTask.new(:spec)
desc "by default run tests"
task :default => :test
desc "test command line examples"
task :test_cli do
sh "cd examples; bash examples.sh"
end
desc "demonstrate command line examples"
task :demo_cli do
sh "cd examples; bash examples.sh -n"
end
desc "run all tests"
task :test => [:spec, :test_cli, :test_ruby_examples ]
desc "run windows tests"
task :win_test => [:spec, :test_ruby_examples ]
task :test_simple_rb do
ruby "-Ilib examples/simple.rb"
end
task :test_override_rb do
ruby "-Ilib examples/override.rb"
end
task :test_callback_rb do
ruby "-Ilib examples/callback.rb"
end
task :test_trace_failure_rb do
ruby "-Ilib examples/trace_failure.rb"
end
desc "test example ruby scripts"
task :test_ruby_examples => [ :test_simple_rb, :test_override_rb, :test_callback_rb, :test_trace_failure_rb ]