Prechádzať zdrojové kódy

Fail Travis CI builds on tests failure

Maxim Vladimirskiy 7 rokov pred
rodič
commit
6a8338374e
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      Makefile

+ 1 - 1
Makefile

@@ -4,7 +4,7 @@ default: fmt vet errcheck test
 test:
 	echo "" > coverage.txt
 	for d in `go list ./... | grep -v vendor`; do \
-		go test -v -timeout 60s -race -coverprofile=profile.out -covermode=atomic $$d; \
+		go test -v -timeout 60s -race -coverprofile=profile.out -covermode=atomic $$d || exit 1; \
 		if [ -f profile.out ]; then \
 			cat profile.out >> coverage.txt; \
 			rm profile.out; \