mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
604fd5c437
* Change to create "mruby" directory in a repository * Create Rakefile and use it in .travis.yml This enable us to write build script with Ruby syntax
23 lines
462 B
Ruby
23 lines
462 B
Ruby
MRUBY_CONFIG = File.expand_path(ENV["MRUBY_CONFIG"] || "build_config.rb")
|
|
|
|
file :mruby do
|
|
sh "git clone --depth=1 git://github.com/mruby/mruby.git"
|
|
end
|
|
|
|
desc "compile binary"
|
|
task :compile => :mruby do
|
|
sh "cd mruby && MRUBY_CONFIG=#{MRUBY_CONFIG} rake all"
|
|
end
|
|
|
|
desc "test"
|
|
task :test => :mruby do
|
|
sh "cd mruby && MRUBY_CONFIG=#{MRUBY_CONFIG} rake all test"
|
|
end
|
|
|
|
desc "cleanup"
|
|
task :clean do
|
|
sh "cd mruby && rake deep_clean"
|
|
end
|
|
|
|
task :default => :test
|