diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2018-08-06 00:26:12 +0100 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2018-08-06 10:15:21 +0100 |
commit | 901103521e70a034d1476d5450d10800c0a29018 (patch) | |
tree | c66fa8134bab598f914a8552aff6e0bed4c1e840 /Makefile | |
parent | 88e626cd1bd4426052ce54dfd393cb5ba8b3225f (diff) |
Error if the git client isn't clean
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -12,6 +12,8 @@ test: dep go vet ./... go list ./... |egrep -v 'vendor/|proto$$' |xargs -L1 golint -set_exit_status gofmt -d $(SRC_FILES) + $(MAKE) generate + @[ -z "`git status --porcelain`" ] || (echo "unexpected files: `git status --porcelain`" && exit 1) build: cashier cashierd @@ -30,4 +32,4 @@ clean: dep: go get -u github.com/golang/lint/golint -.PHONY: dep generate test cashier cashierd
\ No newline at end of file +.PHONY: all build dep generate test cashier cashierd clean |