mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-15 19:23:50 +00:00
Add failing builds when tests fail
This commit is contained in:
1 parent
5365d1d1fd
commit
417f5c3f0f
1 file changed
+6
-1
@@ -76,7 +76,12 @@ end
|
||||
|
||||
task :test => [:build] do
|
||||
tests = "'" + FileList['Tests/**/*.j'].join("' '") + "'"
|
||||
system %{ojtest #{tests} }
|
||||
build_result = %x{ojtest #{tests} }
|
||||
|
||||
if build_result.match(/Test suite failed/i)
|
||||
puts "tests failed, aborting the build"
|
||||
rake abort
|
||||
end
|
||||
end
|
||||
|
||||
task :docs do
|
||||
|
||||
Reference in new issue
Block a user