Files
mruby-mruby/Rakefile
T
yui-knk 604fd5c437 Reform build process on travis ci
* 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
2016-02-11 19:53:48 +09:00

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