diff --git a/Makefile b/Makefile index 1a203884..0784ee8e 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ NETGO_CHECK=@strings $@ | grep cgo_stub\\\.go >/dev/null || { \ false; \ } -all: $(WEAVE_EXPORT) +all: $(WEAVE_EXPORT) $(COVER_EXE) travis: $(EXES) diff --git a/test/units.sh b/test/units.sh index d388b23e..9fa72d85 100755 --- a/test/units.sh +++ b/test/units.sh @@ -28,10 +28,10 @@ if [ -n "$CIRCLECI" -a -z "$NO_SCHEDULER" ]; then fi for dir in $TESTDIRS; do + go get -t -tags netgo $dir GO_TEST_ARGS_RUN="$GO_TEST_ARGS" if [ -n "$SLOW" ]; then - go get -t -tags netgo $dir output=$(mktemp $coverdir/unit.XXXXXXXXXX) GO_TEST_ARGS_RUN="$GO_TEST_ARGS -coverprofile=$output" fi