blob: be38384ff6fe20c959b3e9a63b635de8af1fe62b [file] [log] [blame]
William Kurkianea869482019-04-09 15:16:11 -04001all: vet test testrace
2
Abhay Kumara61c5222025-11-10 07:32:50 +00003build:
William Kurkianea869482019-04-09 15:16:11 -04004 go build google.golang.org/grpc/...
5
6clean:
7 go clean -i google.golang.org/grpc/...
8
9deps:
Abhay Kumara61c5222025-11-10 07:32:50 +000010 GO111MODULE=on go get -d -v google.golang.org/grpc/...
William Kurkianea869482019-04-09 15:16:11 -040011
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
Abhay Kumara61c5222025-11-10 07:32:50 +000019test:
William Kurkianea869482019-04-09 15:16:11 -040020 go test -cpu 1,4 -timeout 7m google.golang.org/grpc/...
21
Abhay Kumara61c5222025-11-10 07:32:50 +000022testsubmodule:
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/...
William Kurkianea869482019-04-09 15:16:11 -040025
Abhay Kumara61c5222025-11-10 07:32:50 +000026testrace:
William Kurkianea869482019-04-09 15:16:11 -040027 go test -race -cpu 1,4 -timeout 7m google.golang.org/grpc/...
28
Abhay Kumara61c5222025-11-10 07:32:50 +000029testdeps:
30 GO111MODULE=on go get -d -v -t google.golang.org/grpc/...
William Kurkianea869482019-04-09 15:16:11 -040031
32vet: vetdeps
Abhay Kumara61c5222025-11-10 07:32:50 +000033 ./scripts/vet.sh
William Kurkianea869482019-04-09 15:16:11 -040034
35vetdeps:
Abhay Kumara61c5222025-11-10 07:32:50 +000036 ./scripts/vet.sh -install
William Kurkianea869482019-04-09 15:16:11 -040037
38.PHONY: \
39 all \
40 build \
41 clean \
42 deps \
43 proto \
44 test \
Abhay Kumara61c5222025-11-10 07:32:50 +000045 testsubmodule \
William Kurkianea869482019-04-09 15:16:11 -040046 testrace \
Abhay Kumara61c5222025-11-10 07:32:50 +000047 testdeps \
William Kurkianea869482019-04-09 15:16:11 -040048 vet \
49 vetdeps