diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-07-26 10:52:25 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-07-26 10:52:25 -0700 |
| commit | f6d686eae0fce7d93426e0eb188cdc9658dfee75 (patch) | |
| tree | a347da0b5768c3d767b769d6722e2b4a3099634b /tasks | |
| parent | 2d83e4b8a4bfd5aa285113fffc50f5b5f639e391 (diff) | |
| parent | 54ff02acb48f6053fa041737e96b9a064d4b26dc (diff) | |
| download | mruby-f6d686eae0fce7d93426e0eb188cdc9658dfee75.tar.gz mruby-f6d686eae0fce7d93426e0eb188cdc9658dfee75.zip | |
Merge pull request #1410 from Fleurer/introduce-mrb-assert
add assert check for TravisCI
Diffstat (limited to 'tasks')
| -rw-r--r-- | tasks/mruby_build_commands.rake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tasks/mruby_build_commands.rake b/tasks/mruby_build_commands.rake index e09aee426..19d0b70a2 100644 --- a/tasks/mruby_build_commands.rake +++ b/tasks/mruby_build_commands.rake @@ -262,6 +262,11 @@ module MRuby IO.popen("#{filename @command} #{@compile_options % {:funcname => funcname}} #{filename(infiles).join(' ')}", 'r+') do |io| out.puts io.read end + # if mrbc execution fail, drop the file + if not $?.exitstatus + File.delete(out.path) + exit -1 + end end end |
