forked from Shopify/mruby-engine
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRakefile
38 lines (30 loc) · 824 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
require "bundler/gem_tasks"
require "rake/extensiontask"
begin
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
rescue LoadError
end
Rake::ExtensionTask.new("mruby_engine") do |ext|
ext.lib_dir = "lib/mruby_engine"
end
Rake::Task[:clean].enhance do
sh("script/mkmruby", "clean")
end
Rake::Task[:clobber].enhance do
sh("script/mkmruby", "clobber")
end
task :"compile:mpdecimal:tests" do
Dir.chdir("ext/mruby_engine/mruby-mpdecimal/tests/") do
sh "make"
end
end
task :"test:mpdecimal" => [:"compile:mpdecimal:tests"] do
Dir.chdir("ext/mruby_engine/mruby-mpdecimal/tests/") do
sh("./runtest", "official.decTest")
sh("./runtest", "additional.decTest")
sh("./runtest_alloc", "official.decTest")
end
end
task :spec => [:compile]
task :default => [:spec, :"test:mpdecimal"]