Build cover tool by default, and do go get -t for tests, irregardless of $SLOW

This commit is contained in:
Tom Wilkie committed 2015-07-14 10:50:34 +00:00
1 parent 85b4a05c9a
commit 499d65e715
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -46,7 +46,7 @@ NETGO_CHECK=@strings $@ | grep cgo_stub\\\.go >/dev/null || { \
false; \ false; \
} }
all: $(WEAVE_EXPORT) all: $(WEAVE_EXPORT) $(COVER_EXE)
travis: $(EXES) travis: $(EXES)
+1 -1
View File
@@ -28,10 +28,10 @@ if [ -n "$CIRCLECI" -a -z "$NO_SCHEDULER" ]; then
fi fi
for dir in $TESTDIRS; do for dir in $TESTDIRS; do
go get -t -tags netgo $dir
GO_TEST_ARGS_RUN="$GO_TEST_ARGS" GO_TEST_ARGS_RUN="$GO_TEST_ARGS"
if [ -n "$SLOW" ]; then if [ -n "$SLOW" ]; then
go get -t -tags netgo $dir
output=$(mktemp $coverdir/unit.XXXXXXXXXX) output=$(mktemp $coverdir/unit.XXXXXXXXXX)
GO_TEST_ARGS_RUN="$GO_TEST_ARGS -coverprofile=$output" GO_TEST_ARGS_RUN="$GO_TEST_ARGS -coverprofile=$output"
fi fi