From 704f5bd4e4db94b1852aebdc8544661388788961 Mon Sep 17 00:00:00 2001 From: Tom Wilkie Date: Thu, 30 Jul 2015 13:21:36 +0000 Subject: [PATCH] Automatically run tests with coverage etc on Circle. --- test | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test b/test index 0730399df..83dcb4efd 100755 --- a/test +++ b/test @@ -3,9 +3,13 @@ set -e DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -SLOW=${SLOW-} GO_TEST_ARGS="-tags netgo -cpu 4 -timeout 8m" -if [ -n "$SLOW" -o "$1" = "-slow" ]; then + +if [ -n "$SLOW" -o "$1" = "-slow" -o -n "$CIRCLECI" ]; then + SLOW=true +fi + +if [ -n "$SLOW" ]; then GO_TEST_ARGS="$GO_TEST_ARGS -race -covermode=atomic" if [ -n "$COVERDIR" ] ; then