Skip to content

Commit

Permalink
fix script used in ci to fail when test are failed (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Sucharevich authored Oct 9, 2018
1 parent c6a01e1 commit d55dd7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.5
0.0.6
4 changes: 3 additions & 1 deletion hack/test.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit d55dd7e

Please sign in to comment.