github.com/intel/goresctrl@v0.5.0/Makefile (about)

     1  GO_CMD := go
     2  
     3  Q := @
     4  
     5  .PHONY: all ci-lint gofmt-verify test verify
     6  
     7  all: test
     8  
     9  verify: gofmt-verify ci-lint
    10  
    11  gofmt-verify:
    12  	@out=`gofmt -w -l -d $$(find . -name '*.go')`; \
    13  	if [ -n "$$out" ]; then \
    14  	    echo "$$out"; \
    15  	    exit 1; \
    16  	fi
    17  
    18  ci-lint:
    19  	golangci-lint run
    20  
    21  test:
    22  	$(Q)$(GO_CMD) test -v -coverprofile=coverage.txt ./pkg/...