feat make check: add make check to run go vet and golint

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
This commit is contained in:
Hector Sanjuan 2017-12-06 13:56:21 +01:00
parent 9a246a237d
commit b0d61ab9cb
2 changed files with 6 additions and 0 deletions

View File

@ -10,8 +10,10 @@ before_install:
install:
- go get golang.org/x/tools/cmd/cover
- go get github.com/mattn/goveralls
- go get github.com/golang/lint/golint
- make deps
script:
- make check
- make service && make ctl && ./coverage.sh
- make install
- make test_sharness && make clean_sharness

View File

@ -60,6 +60,10 @@ deps: gx
$(gx_bin) install --global
$(gx-go_bin) rewrite
check:
go vet ./...
golint -min_confidence 0.3 ./...
test: deps
go test -tags silent -v ./...