github.com/mssola/todo@v0.0.0-20181029153210-d25348dc3f48/Makefile (about)

     1  test :: unit_test checks
     2  
     3  # The vet, fmt and lint rules have been extracted from:
     4  # 	github.com/docker/distribution
     5  
     6  vet ::
     7  	@echo "+ $@"
     8  		@go list ./... | grep -v vendor | go vet
     9  
    10  fmt ::
    11  	@echo "+ $@"
    12  		@test -z "$$(gofmt -s -l . | grep -v vendor | tee /dev/stderr)" || \
    13  			echo "+ please format Go code with 'gofmt -s'"
    14  
    15  lint ::
    16  	@echo "+ $@"
    17  		@test -z "$$(golint ./... | grep -v vendor | tee /dev/stderr)"
    18  
    19  climate ::
    20  	@echo "+ $@"
    21  		@(./script/climate -o -a app && ./script/climate -o -a -t 80.0 lib)
    22  
    23  unit_test ::
    24  	@echo "+ $@"
    25  		@go list ./... | grep -v vendor | xargs go test -v
    26  
    27  checks :: vet fmt lint climate