ci: exit 1 when build fail

This commit is contained in:
thinkerou 2018-12-12 22:11:25 +08:00
parent cce49582d6
commit c0517c4fb5

View File

@ -19,6 +19,9 @@ test:
if grep -q "^--- FAIL" tmp.out; then \
rm tmp.out; \
exit 1; \
elif grep -q "build fail" tmp.out; then \
rm tmp.out; \
exit; \
fi; \
if [ -f profile.out ]; then \
cat profile.out | grep -v "mode:" >> coverage.out; \