Debian Codegraph @

vendor/mruby/mrbgems/mruby-file-stat/Rakefile

raw
1 mruby_version = ENV["MRUBY_VERSION"] || 'master'
2 mruby_dir = "mruby-#{mruby_version}"
3
4 file 'mruby-head' do
5 sh "git clone --depth 1 --no-single-branch https://github.com/mruby/mruby.git"
6 sh "mv mruby mruby-head"
7 end
8
9 file mruby_dir => 'mruby-head' do
10 sh "cp -a mruby-head #{mruby_dir}"
11 cd mruby_dir do
12 sh "git checkout #{mruby_version}"
13 end
14 end
15
16 file "#{mruby_dir}/ci_build_config.rb" => [mruby_dir, ".ci_build_config.rb"] do
17 sh "cp #{File.expand_path(".ci_build_config.rb")} #{mruby_dir}/ci_build_config.rb"
18 end
19
20 desc "run test with mruby"
21 task :test => "#{mruby_dir}/ci_build_config.rb" do
22 cd mruby_dir do
23 sh "rake -E 'STDOUT.sync=true' test all MRUBY_CONFIG=ci_build_config.rb"
24 end
25 end