From c0517c4fb590c85c9243bb976cdefd7206982171 Mon Sep 17 00:00:00 2001 From: thinkerou Date: Wed, 12 Dec 2018 22:11:25 +0800 Subject: [PATCH] ci: exit 1 when build fail --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b0d2e24a..46457370 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,10 @@ test: cat tmp.out; \ if grep -q "^--- FAIL" tmp.out; then \ rm tmp.out; \ - exit 1;\ + 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; \