Explorar o código

ci: exit 1 when build fail (#1695)

Like this:

```
FAIL	github.com/gin-gonic/gin [build failed]
```
thinkerou %!s(int64=7) %!d(string=hai) anos
pai
achega
0bfc9cbcdb
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      Makefile

+ 4 - 1
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 failed" tmp.out; then \
+			rm tmp.out; \
+			exit; \
 		fi; \
 		if [ -f profile.out ]; then \
 			cat profile.out | grep -v "mode:" >> coverage.out; \