Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1 | all: vet test testrace |
| 2 | |
| 3 | build: deps |
| 4 | go build google.golang.org/grpc/... |
| 5 | |
| 6 | clean: |
| 7 | go clean -i google.golang.org/grpc/... |
| 8 | |
| 9 | deps: |
| 10 | go get -d -v google.golang.org/grpc/... |
| 11 | |
| 12 | proto: |
| 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 | |
| 19 | test: testdeps |
| 20 | go test -cpu 1,4 -timeout 7m google.golang.org/grpc/... |
| 21 | |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 22 | testsubmodule: testdeps |
| 23 | cd security/advancedtls && go test -cpu 1,4 -timeout 7m google.golang.org/grpc/security/advancedtls/... |
| 24 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 25 | testappengine: testappenginedeps |
| 26 | goapp test -cpu 1,4 -timeout 7m google.golang.org/grpc/... |
| 27 | |
| 28 | testappenginedeps: |
| 29 | goapp get -d -v -t -tags 'appengine appenginevm' google.golang.org/grpc/... |
| 30 | |
| 31 | testdeps: |
| 32 | go get -d -v -t google.golang.org/grpc/... |
| 33 | |
| 34 | testrace: testdeps |
| 35 | go test -race -cpu 1,4 -timeout 7m google.golang.org/grpc/... |
| 36 | |
| 37 | updatedeps: |
| 38 | go get -d -v -u -f google.golang.org/grpc/... |
| 39 | |
| 40 | updatetestdeps: |
| 41 | go get -d -v -t -u -f google.golang.org/grpc/... |
| 42 | |
| 43 | vet: vetdeps |
| 44 | ./vet.sh |
| 45 | |
| 46 | vetdeps: |
| 47 | ./vet.sh -install |
| 48 | |
| 49 | .PHONY: \ |
| 50 | all \ |
| 51 | build \ |
| 52 | clean \ |
| 53 | deps \ |
| 54 | proto \ |
| 55 | test \ |
| 56 | testappengine \ |
| 57 | testappenginedeps \ |
| 58 | testdeps \ |
| 59 | testrace \ |
| 60 | updatedeps \ |
| 61 | updatetestdeps \ |
| 62 | vet \ |
| 63 | vetdeps |