github.com/IBM-Cloud/bluemix-go@v0.0.0-20240423071914-9e96525baef4/Makefile (about)

     1  export MAX_RETRIES ?= 0
     2  
     3  .PHONY : test
     4  test: test_deps vet
     5  	go test ./... -timeout 120m
     6  
     7  .PHONY : test_deps
     8  test_deps: 
     9  	go get -t ./...
    10  
    11  .PHONY : vet
    12  
    13  vet:
    14  	@echo 'go vet $$(go list ./... | grep -v vendor)'
    15  	@go vet $$(go list ./... | grep -v vendor) ; if [ $$? -eq 1 ]; then \
    16  		echo ""; \
    17  		echo "Vet found suspicious constructs. Please check the reported constructs"; \
    18  		echo "and fix them if necessary before submitting the code for review."; \
    19  		exit 1; \
    20  	fi