[FIX] correctly evaluate grep's output
authorHolger Brunn <hbrunn@therp.nl>
Mon, 21 Jul 2014 10:32:47 +0000 (12:32 +0200)
committerHolger Brunn <hbrunn@therp.nl>
Mon, 21 Jul 2014 10:32:47 +0000 (12:32 +0200)
.travis.yml

index e88fb0a..163606e 100644 (file)
@@ -21,7 +21,7 @@ script:
   - createdb ${DATABASE}
   - ./openerp-server -d ${DATABASE} --addons-path=./openerp/addons,./addons --stop-after-init --init=all
   - coverage run ./openerp-server -d ${DATABASE} --addons-path=./openerp/addons,./addons --stop-after-init --init=all --test-enable --log-level=test | tee stdout.log
-  - ! grep -v mail stdout.log | egrep -q "(At least one test failed when loading the modules.|ERROR ${DATABASE})"
+  - if grep -v mail stdout.log | egrep -q "(At least one test failed when loading the modules.|ERROR ${DATABASE})"; then exit 1; fi
 
 after_success:
   coveralls