Exit with 2 if misspelling found
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
8ba68d0de0
commit
2e6a8d728d
7
Makefile
7
Makefile
|
@ -94,12 +94,7 @@ misspell-check:
|
||||||
@hash misspell > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
@hash misspell > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
||||||
go get -u github.com/client9/misspell/cmd/misspell; \
|
go get -u github.com/client9/misspell/cmd/misspell; \
|
||||||
fi
|
fi
|
||||||
@diff=$$(misspell $(GOFILES)); \
|
misspell -error $(GOFILES)
|
||||||
if [ -n "$$diff" ]; then \
|
|
||||||
echo "Please fix the misspelling:"; \
|
|
||||||
echo "$${diff}"; \
|
|
||||||
exit 1; \
|
|
||||||
fi;
|
|
||||||
|
|
||||||
test: fmt-check
|
test: fmt-check
|
||||||
for PKG in $(PACKAGES); do go test -v -cover -coverprofile $$GOPATH/src/$$PKG/coverage.txt $$PKG || exit 1; done;
|
for PKG in $(PACKAGES); do go test -v -cover -coverprofile $$GOPATH/src/$$PKG/coverage.txt $$PKG || exit 1; done;
|
||||||
|
|
Loading…
Reference in New Issue