circle.yml: verify that golint violations == 0 for some dirs

This commit is contained in:
Cameron Sparr 2015-08-12 15:22:55 -06:00
parent 5cb3a096c1
commit 5d4b6c41a8
2 changed files with 5 additions and 5 deletions

View File

@ -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:

View File

@ -51,7 +51,7 @@ func (c *Config) Outputs() map[string]*ast.Table {
return c.outputs
}
// The name of a tag, and the values on which to filter
// TagFilter is the name of a tag, and the values on which to filter
type TagFilter struct {
Name string
Filter []string