github.com/greenboxal/deis@v1.12.1/pkg/Makefile (about)

     1  include ../includes.mk
     2  
     3  repo_path = github.com/deis/deis/pkg
     4  
     5  GO_PACKAGES = prettyprint time
     6  GO_PACKAGES_REPO_PATH = $(addprefix $(repo_path)/,$(GO_PACKAGES))
     7  
     8  test: test-style test-unit
     9  
    10  test-style:
    11  # display output, then check
    12  	$(GOFMT) $(GO_PACKAGES)
    13  	@$(GOFMT) $(GO_PACKAGES) | read; if [ $$? == 0 ]; then echo "gofmt check failed."; exit 1; fi
    14  	$(GOVET) $(GO_PACKAGES_REPO_PATH)
    15  	$(GOLINT) ./...
    16  
    17  test-unit:
    18  	$(GOTEST) ./...