mirror of https://github.com/gin-gonic/gin.git
ci: exit 1 when build fail (#1695)
Like this: ``` FAIL github.com/gin-gonic/gin [build failed] ```
This commit is contained in:
parent
1b34e8e8de
commit
0bfc9cbcdb
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 failed" 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…
Reference in New Issue