Last change
on this file since 322 was 321, checked in by coas-nagasima, 7 years ago |
文字コードを設定
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-ruby;charset=UTF-8
|
File size:
656 bytes
|
Rev | Line | |
---|
[279] | 1 | #!/usr/bin/env ruby
|
---|
| 2 | #
|
---|
| 3 | # mrbgems test runner
|
---|
| 4 | #
|
---|
| 5 |
|
---|
| 6 | gemname = File.basename(File.dirname(File.expand_path __FILE__))
|
---|
| 7 |
|
---|
| 8 | if __FILE__ == $0
|
---|
| 9 | repository, dir = 'https://github.com/mruby/mruby.git', 'tmp/mruby'
|
---|
| 10 | build_args = ARGV
|
---|
| 11 | build_args = ['all', 'test'] if build_args.nil? or build_args.empty?
|
---|
| 12 |
|
---|
| 13 | Dir.mkdir 'tmp' unless File.exist?('tmp')
|
---|
| 14 | unless File.exist?(dir)
|
---|
| 15 | system "git clone #{repository} #{dir}"
|
---|
| 16 | end
|
---|
| 17 |
|
---|
| 18 | exit system(%Q[cd #{dir}; MRUBY_CONFIG=#{File.expand_path __FILE__} ruby minirake #{build_args.join(' ')}])
|
---|
| 19 | end
|
---|
| 20 |
|
---|
| 21 | MRuby::Build.new do |conf|
|
---|
| 22 | toolchain :gcc
|
---|
| 23 | conf.gembox 'default'
|
---|
| 24 |
|
---|
| 25 | conf.gem File.expand_path(File.dirname(__FILE__))
|
---|
| 26 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.