Skip to content

Commit b44d617

Browse files
committed
Create gotestsum in support/bin and ignore
1 parent 4b31496 commit b44d617

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ cover.out
1919
cover.xml
2020
custom_hooks
2121
hooks/*.d
22+
/support/bin/gotestsum-*
2223
tags
2324
tmp/*
2425
vendor

Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ BUILD_TIME := $(shell date -u +%Y%m%d.%H%M%S)
88
BUILD_TAGS := tracer_static tracer_static_jaeger continuous_profiler_stackdriver
99

1010
GOTESTSUM_VERSION := 1.10.0
11+
GOTESTSUM_FILE := support/bin/gotestsum-${GOTESTSUM_VERSION}
1112

1213
export GOFLAGS := -mod=readonly
1314

@@ -59,12 +60,12 @@ test_ruby:
5960
test_golang:
6061
go test -cover -coverprofile=cover.out -count 1 ./...
6162

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 ./...
6465

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}
6869

6970
test_golang_race:
7071
go test -race -count 1 ./...

0 commit comments

Comments
 (0)