Skip to content

Commit

Permalink
Format shell script (#245)
Browse files Browse the repository at this point in the history
find hack | grep sh | xargs shfmt -l -w -ci -i 2 {}
  • Loading branch information
tamalsaha authored Jul 8, 2018
1 parent d339391 commit 55f0930
Show file tree
Hide file tree
Showing 2 changed files with 267 additions and 243 deletions.
12 changes: 6 additions & 6 deletions hack/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ REPO_ROOT="$GOPATH/src/github.com/kubedb/cli"

pushd $REPO_ROOT

echo "" > coverage.txt
echo "" >coverage.txt

for d in $(go list ./... | grep -v -e vendor -e test); do
go test -v -race -coverprofile=profile.out -covermode=atomic "$d"
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
go test -v -race -coverprofile=profile.out -covermode=atomic "$d"
if [ -f profile.out ]; then
cat profile.out >>coverage.txt
rm profile.out
fi
done

popd
Loading

0 comments on commit 55f0930

Please sign in to comment.