blob: 1f8960922b3bb2b11c89d4667ee16ed3631564c6 [file] [log] [blame]
khenaidoo5fc5cea2021-08-11 17:39:16 -04001all: vet test testrace
2
3build:
4 go build google.golang.org/grpc/...
5
6clean:
7 go clean -i google.golang.org/grpc/...
8
9deps:
10 GO111MODULE=on go get -d -v google.golang.org/grpc/...
11
12proto:
13 @ if ! which protoc > /dev/null; then \
14 echo "error: protoc not installed" >&2; \
15 exit 1; \
16 fi
17 go generate google.golang.org/grpc/...
18
19test:
20 go test -cpu 1,4 -timeout 7m google.golang.org/grpc/...
21
22testsubmodule:
23 cd security/advancedtls && go test -cpu 1,4 -timeout 7m google.golang.org/grpc/security/advancedtls/...
24 cd security/authorization && go test -cpu 1,4 -timeout 7m google.golang.org/grpc/security/authorization/...
25
26testrace:
27 go test -race -cpu 1,4 -timeout 7m google.golang.org/grpc/...
28
29testdeps:
30 GO111MODULE=on go get -d -v -t google.golang.org/grpc/...
31
32vet: vetdeps
33 ./vet.sh
34
35vetdeps:
36 ./vet.sh -install
37
38.PHONY: \
39 all \
40 build \
41 clean \
42 proto \
43 test \
44 testrace \
45 vet \
46 vetdeps