diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-09-05 13:30:14 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-09-05 13:30:14 +0900 |
| commit | 44fdd53f2e5bac6fe1cbc2ceb653aa5f2de965e6 (patch) | |
| tree | 3996a77d842e22be202505ee6c3fe87f250bbb4b /mrbgems/mruby-sleep/Rakefile | |
| parent | b01b0d242b8f36c0a6f2de05126ce9ef87da7fc1 (diff) | |
| download | mruby-44fdd53f2e5bac6fe1cbc2ceb653aa5f2de965e6.tar.gz mruby-44fdd53f2e5bac6fe1cbc2ceb653aa5f2de965e6.zip | |
Add `mruby-sleep` gem to the core.
Diffstat (limited to 'mrbgems/mruby-sleep/Rakefile')
| -rw-r--r-- | mrbgems/mruby-sleep/Rakefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/mrbgems/mruby-sleep/Rakefile b/mrbgems/mruby-sleep/Rakefile new file mode 100644 index 000000000..5e3c46173 --- /dev/null +++ b/mrbgems/mruby-sleep/Rakefile @@ -0,0 +1,29 @@ +MRUBY_CONFIG=File.expand_path(ENV["MRUBY_CONFIG"] || ".travis_build_config.rb") +MRUBY_VERSION=ENV["MRUBY_VERSION"] || "1.2.0" + +file :mruby do + cmd = "git clone --depth=1 git://github.com/mruby/mruby.git" + if MRUBY_VERSION != 'master' + cmd << " && cd mruby" + cmd << " && git fetch --tags && git checkout $(git rev-parse #{MRUBY_VERSION})" + end + sh cmd +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 + exit 0 unless File.directory?('mruby') + sh "cd mruby && rake deep_clean" +end + +task :default => :compile |
