summaryrefslogtreecommitdiffhomepage
path: root/.travis/tests.sh
diff options
context:
space:
mode:
Diffstat (limited to '.travis/tests.sh')
-rwxr-xr-x.travis/tests.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/.travis/tests.sh b/.travis/tests.sh
index 1503547..a3389fe 100755
--- a/.travis/tests.sh
+++ b/.travis/tests.sh
@@ -13,13 +13,13 @@ for d in $(go list ./... | grep -v vendor); do
rm profile.out
fi
# integration tests
- go test -c -tags=integration -race -coverprofile=profile.out -covermode=atomic $d
+ go test -c -cover -tags=integration -race -covermode=atomic $d
testbin="./$(basename $d).test"
# only run it if it was built - i.e. if there are integ tests
- test -x "${testbin}" && sudo "./${testbin}"
+ test -x "${testbin}" && sudo "./${testbin}" -test.coverprofile=profile.out
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
- rm profile.out
+ rm -f profile.out
fi
done