From 07244644ae9fe7a2330a1067f7e7446f6ef8f172 Mon Sep 17 00:00:00 2001 From: Oleg Sucharevich Date: Tue, 9 Oct 2018 21:14:32 +0300 Subject: [PATCH] fix script used in ci to fail when test are failed --- VERSION | 2 +- hack/test.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index fa3de58..99d85ec 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.5 \ No newline at end of file +0.0.6 \ No newline at end of file diff --git a/hack/test.sh b/hack/test.sh index b080251..5498ede 100755 --- a/hack/test.sh +++ b/hack/test.sh @@ -1,9 +1,11 @@ #!/bin/bash +set -e +set -o pipefail + rm -rf .cover/ .test/ mkdir .cover/ .test/ trap "rm -rf .test/" EXIT - for pkg in `go list ./... | grep -v /vendor/`; do go test -v -covermode=atomic \ -coverprofile=".cover/$(echo $pkg | sed 's/\//_/g').cover.out" $pkg