aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFelix Hanley <felix@userspace.com.au>2020-02-08 10:47:16 +0000
committerFelix Hanley <felix@userspace.com.au>2020-02-08 10:47:16 +0000
commit368d26cdd6ac182ed02701fcc694d748239841d8 (patch)
tree508f4ebf5949fff00d77202669c6f0138cd8c90c /Makefile
parentcf11cf76db3fc37b6635b9f5f63f262d93ba41a3 (diff)
downloadmigrate-368d26cdd6ac182ed02701fcc694d748239841d8.tar.gz
migrate-368d26cdd6ac182ed02701fcc694d748239841d8.tar.bz2
Check for zero migrationsv0.1.0
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 7 insertions, 18 deletions
diff --git a/Makefile b/Makefile
index e99cc0a..3750053 100644
--- a/Makefile
+++ b/Makefile
@@ -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*