go.undefinedlabs.com/scopeagent@v0.4.2/Makefile (about)

     1  .DEFAULT_GOAL := test
     2  
     3  .PHONY: test
     4  test:
     5  	go test -v -race -cover ./...
     6  
     7  .PHONY: bench
     8  bench:
     9  	go test -v -run - -bench . -benchmem ./...
    10  
    11  .PHONY: lint
    12  lint:
    13  	# Ignore grep's exit code since no match returns 1.
    14  	-golint ./... | grep --invert-match -E '^.*\.pb\.go'
    15  	@
    16  	@! (golint ./... |grep --invert-match -E '^.*\.pb\.go' | read dummy)
    17  
    18  .PHONY: vet
    19  vet:
    20  	go vet ./...
    21  
    22  .PHONY: example
    23  example:
    24  	go build -o build/dapperish-example ./examples/dapperish.go
    25  	./build/dapperish-example