From 328144c31b5abd57be42f18ffb8a442c78619097 Mon Sep 17 00:00:00 2001 From: Eyal Posener Date: Sun, 7 May 2017 19:54:57 +0300 Subject: [travis] test multiple packages --- test.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 test.sh (limited to 'test.sh') diff --git a/test.sh b/test.sh new file mode 100755 index 0000000..56bfcf1 --- /dev/null +++ b/test.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +set -e +echo "" > coverage.txt + +for d in $(go list ./... | grep -v vendor); 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 +done \ No newline at end of file -- cgit v1.2.3