2015-05-24 17:05:35 +03:00
|
|
|
all: test testrace
|
|
|
|
|
|
|
|
deps:
|
2015-05-24 17:27:48 +03:00
|
|
|
go get -d -v google.golang.org/grpc/...
|
2015-05-24 17:05:35 +03:00
|
|
|
|
|
|
|
updatedeps:
|
2015-05-24 17:27:48 +03:00
|
|
|
go get -d -v -u -f google.golang.org/grpc/...
|
2015-05-24 17:05:35 +03:00
|
|
|
|
|
|
|
testdeps:
|
2015-05-24 17:27:48 +03:00
|
|
|
go get -d -v -t google.golang.org/grpc/...
|
2015-05-24 17:05:35 +03:00
|
|
|
|
|
|
|
updatetestdeps:
|
2015-05-24 17:27:48 +03:00
|
|
|
go get -d -v -t -u -f google.golang.org/grpc/...
|
2015-05-24 17:05:35 +03:00
|
|
|
|
|
|
|
build: deps
|
2015-05-24 17:27:48 +03:00
|
|
|
go build google.golang.org/grpc/...
|
2015-05-24 17:05:35 +03:00
|
|
|
|
2015-05-24 17:14:32 +03:00
|
|
|
proto:
|
|
|
|
@ if ! which protoc > /dev/null; then \
|
|
|
|
echo "error: protoc not installed" >&2; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
2017-08-18 02:00:51 +03:00
|
|
|
go generate google.golang.org/grpc/...
|
2015-05-24 17:14:32 +03:00
|
|
|
|
2015-06-13 04:17:36 +03:00
|
|
|
test: testdeps
|
2017-11-01 00:07:09 +03:00
|
|
|
go test -cpu 1,4 -timeout 5m google.golang.org/grpc/...
|
2015-05-24 17:05:35 +03:00
|
|
|
|
2015-06-13 04:17:36 +03:00
|
|
|
testrace: testdeps
|
2017-11-01 00:07:09 +03:00
|
|
|
go test -race -cpu 1,4 -timeout 7m google.golang.org/grpc/...
|
2015-05-24 17:05:35 +03:00
|
|
|
|
|
|
|
clean:
|
2016-03-29 01:05:04 +03:00
|
|
|
go clean -i google.golang.org/grpc/...
|
2015-09-29 03:40:23 +03:00
|
|
|
|
2016-03-29 01:05:04 +03:00
|
|
|
.PHONY: \
|
|
|
|
all \
|
|
|
|
deps \
|
|
|
|
updatedeps \
|
|
|
|
testdeps \
|
|
|
|
updatetestdeps \
|
|
|
|
build \
|
|
|
|
proto \
|
|
|
|
test \
|
|
|
|
testrace \
|
|
|
|
clean \
|
2017-06-24 00:22:51 +03:00
|
|
|
coverage
|