mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-22 09:34:33 +08:00
ci: exit 1 when build fail
This commit is contained in:
parent
cce49582d6
commit
c0517c4fb5
5
Makefile
5
Makefile
@ -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; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user