Automatically run tests with coverage etc on Circle.

This commit is contained in:
Tom Wilkie
2015-07-30 13:21:36 +00:00
parent 76de35ea97
commit 704f5bd4e4

8
test
View File

@@ -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