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

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