Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
68 lines (53 sloc) 1.08 KB
all: test
deps:
go get -d -v ./...
updatedeps:
go get -d -v -u -f ./...
testdeps:
go get -d -v -t ./...
updatetestdeps:
go get -d -v -t -u -f ./...
build: deps
go build ./...
install: deps
go install ./...
lint: testdeps
go get -v github.com/golang/lint/golint
for file in $$(find . -name '*.go' | grep -v '\.pb\.go' | grep -v '\.pb\.log\.go' | grep -v '\.pb\.gw\.go'); do \
golint $$file; \
if [ -n "$$(golint $$file)" ]; then \
exit 1; \
fi; \
done
vet: testdeps
go vet ./...
errcheck: testdeps
go get -v github.com/kisielk/errcheck
errcheck ./...
#errcheck
pretest: lint
test: testdeps pretest
go test -test.v ./...
clean:
go clean -i ./...
proto:
go get -v go.pedge.io/protoeasy/cmd/protoeasy
go get -v go.pedge.io/pkg/cmd/strip-package-comments
protoeasy --go --grpc --grpc-gateway --go-import-path go.pedge.io/proto .
find . -name *\.pb\*\.go | xargs strip-package-comments
rm -f process/protoprocess.pb.gw.go
.PHONY: \
all \
deps \
updatedeps \
testdeps \
updatetestdeps \
build \
install \
lint \
vet \
errcheck \
pretest \
test \
clean \
proto