diff options
| author | Felix Hanley <felix@userspace.com.au> | 2020-02-08 10:47:16 +0000 |
|---|---|---|
| committer | Felix Hanley <felix@userspace.com.au> | 2020-02-08 10:47:16 +0000 |
| commit | 368d26cdd6ac182ed02701fcc694d748239841d8 (patch) | |
| tree | 508f4ebf5949fff00d77202669c6f0138cd8c90c /Makefile | |
| parent | cf11cf76db3fc37b6635b9f5f63f262d93ba41a3 (diff) | |
| download | migrate-368d26cdd6ac182ed02701fcc694d748239841d8.tar.gz migrate-368d26cdd6ac182ed02701fcc694d748239841d8.tar.bz2 | |
Check for zero migrationsv0.1.0
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 25 |
1 files changed, 7 insertions, 18 deletions
@@ -1,24 +1,13 @@ -GOPATH?= $(HOME)/go - .PHONY: test -test: lint ## Run tests and create coverage report - go test -short -coverprofile=coverage.txt -covermode=atomic ./... - go tool cover -html=coverage.txt -o coverage.html +test: lint + go test -short -coverprofile=coverage.txt -covermode=atomic ./... \ + && go tool cover -html=coverage.txt -o coverage.html .PHONY: lint -lint: $(GOPATH)/bin/golint ## Run the code linter - @for file in $$(find . -name 'vendor' -prune -o -type f -name '*.go'); do \ - golint $$file; done - -$(GOPATH)/bin/golint: - go get -u golang.org/x/lint/golint +lint: + go vet ./... .PHONY: clean -clean: ## Clean up temp files and binaries - @rm -rf coverage* - -.PHONY: help -help: - @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) |sort \ - |awk 'BEGIN{FS=":.*?## "};{printf "\033[36m%-30s\033[0m %s\n",$$1,$$2}' +clean: + rm -rf coverage* |
