circle.yml: verify that golint violations == 0 for some dirs
This commit is contained in:
parent
5cb3a096c1
commit
5d4b6c41a8
|
@ -13,11 +13,11 @@ test:
|
|||
# install binaries
|
||||
- go install ./...
|
||||
# Go fmt should pass all files
|
||||
- "[ `git ls-files | grep '.go$' | xargs gofmt -l 2>&1 | wc -l` -eq 0 ]"
|
||||
- "[ `git ls-files | grep '.go$' | xargs gofmt -l | tee /tmp/foo | wc -l` -eq 0 ] || (cat /tmp/foo; exit 1)"
|
||||
- go vet ./...
|
||||
- golint .
|
||||
- golint testutil/...
|
||||
- golint cmd/...
|
||||
- "[ `golint . | tee /tmp/foo | wc -l` == 0 ] || (cat /tmp/foo; exit 1)"
|
||||
- "[ `golint testutil/... | tee /tmp/foo | wc -l` == 0 ] || (cat /tmp/foo; exit 1)"
|
||||
- "[ `golint cmd/... | tee /tmp/foo | wc -l` == 0 ] || (cat /tmp/foo; exit 1)"
|
||||
override:
|
||||
- make test-short
|
||||
post:
|
||||
|
|
Loading…
Reference in New Issue