File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 1
- PACKAGE_DIRS := $(shell find . -mindepth 2 -type f -name 'go.mod' -exec dirname {} \; | sort)
1
+ GO_MOD_DIRS := $(shell find . -mindepth 2 -type f -name 'go.mod' -exec dirname {} \; | sort)
2
2
3
3
test : testdeps
4
- go test ./...
5
- go test ./... -short -race
6
- go test ./... -run=NONE -bench=. -benchmem
7
- env GOOS=linux GOARCH=386 go test ./...
8
- go vet
4
+ set -e; for dir in $( GO_MOD_DIRS) ; do \
5
+ echo " go test in $$ {dir}" ; \
6
+ (cd " $$ {dir}" && \
7
+ go test && \
8
+ go test ./... -short -race &&
9
+ go test ./... -run=NONE -bench=. -benchmem &&
10
+ env GOOS=linux GOARCH=386 go test && \
11
+ go vet); \
12
+ done
9
13
cd internal/customvet && go build .
10
14
go vet -vettool ./internal/customvet/customvet
11
15
28
32
goimports -w -local github.com/redis/go-redis ./
29
33
30
34
go_mod_tidy :
31
- set -e; for dir in $( PACKAGE_DIRS ) ; do \
35
+ set -e; for dir in $( GO_MOD_DIRS ) ; do \
32
36
echo " go mod tidy in $$ {dir}" ; \
33
37
(cd " $$ {dir}" && \
34
38
go get -u ./... && \
You can’t perform that action at this time.
0 commit comments