github.com/gfleury/gobbs@v0.0.0-20200831213239-44ca2b94c1a1/Makefile (about)

     1  PKGS = $$(go list ./... | grep -v /vendor/)
     2  
     3  default:
     4  	go build
     5  
     6  test:
     7  	go clean $(PKGS)
     8  	TZ=UTC go test $(PKGS) -check.v -coverprofile=coverage.txt -covermode=atomic
     9  
    10  race:
    11  	go clean $(PKGS)
    12  	go test -race $(PKGS) -check.v -coverprofile=coverage.txt -covermode=atomic
    13  
    14  profile:
    15  	go clean $(PKGS)
    16  	make
    17  	
    18  clean:
    19  	rm -rf *.prof
    20  	go clean $(PKGS)
    21  
    22  lint:
    23  	docker run --rm -it -v ${PWD}:/go/src/github.com/gfleury/gobbs -w /go/src/github.com/gfleury/gobbs golangci/golangci-lint:latest golangci-lint run