File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ cover.out
19
19
cover.xml
20
20
custom_hooks
21
21
hooks /* .d
22
+ /support /bin /gotestsum- *
22
23
tags
23
24
tmp /*
24
25
vendor
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ BUILD_TIME := $(shell date -u +%Y%m%d.%H%M%S)
8
8
BUILD_TAGS := tracer_static tracer_static_jaeger continuous_profiler_stackdriver
9
9
10
10
GOTESTSUM_VERSION := 1.10.0
11
+ GOTESTSUM_FILE := support/bin/gotestsum-${GOTESTSUM_VERSION}
11
12
12
13
export GOFLAGS := -mod=readonly
13
14
@@ -59,12 +60,12 @@ test_ruby:
59
60
test_golang :
60
61
go test -cover -coverprofile=cover.out -count 1 ./...
61
62
62
- test_golang_fancy : bin/gotestsum-${GOTESTSUM_VERSION }
63
- @./bin/gotestsum- ${GOTESTSUM_VERSION } --junitfile ./cover.xml --format pkgname -- -coverprofile=./cover.out -covermode=atomic -count 1 ./...
63
+ test_golang_fancy : ${GOTESTSUM_FILE }
64
+ @./${GOTESTSUM_FILE } --junitfile ./cover.xml --format pkgname -- -coverprofile=./cover.out -covermode=atomic -count 1 ./...
64
65
65
- bin/gotestsum-${GOTESTSUM_VERSION } :
66
- @ mkdir -p bin
67
- @ curl -L https://github.com/gotestyourself/gotestsum/releases/download/v${GOTESTSUM_VERSION} /gotestsum_${GOTESTSUM_VERSION} _${OS} _amd64.tar.gz | tar -zOxf - gotestsum > ./bin/gotestsum- ${GOTESTSUM_VERSION } && chmod +x ./bin/gotestsum- ${GOTESTSUM_VERSION }
66
+ ${GOTESTSUM_FILE } :
67
+ mkdir -p $( shell dirname ${GOTESTSUM_FILE})
68
+ curl -L https://github.com/gotestyourself/gotestsum/releases/download/v${GOTESTSUM_VERSION} /gotestsum_${GOTESTSUM_VERSION} _${OS} _amd64.tar.gz | tar -zOxf - gotestsum > ${GOTESTSUM_FILE } && chmod +x ${GOTESTSUM_FILE }
68
69
69
70
test_golang_race :
70
71
go test -race -count 1 ./...
You can’t perform that action at this time.
0 commit comments