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
|
# install binaries
|
||||||
- go install ./...
|
- go install ./...
|
||||||
# Go fmt should pass all files
|
# 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 ./...
|
- go vet ./...
|
||||||
- golint .
|
- "[ `golint . | tee /tmp/foo | wc -l` == 0 ] || (cat /tmp/foo; exit 1)"
|
||||||
- golint testutil/...
|
- "[ `golint testutil/... | tee /tmp/foo | wc -l` == 0 ] || (cat /tmp/foo; exit 1)"
|
||||||
- golint cmd/...
|
- "[ `golint cmd/... | tee /tmp/foo | wc -l` == 0 ] || (cat /tmp/foo; exit 1)"
|
||||||
override:
|
override:
|
||||||
- make test-short
|
- make test-short
|
||||||
post:
|
post:
|
||||||
|
|
|
@ -51,7 +51,7 @@ func (c *Config) Outputs() map[string]*ast.Table {
|
||||||
return c.outputs
|
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 {
|
type TagFilter struct {
|
||||||
Name string
|
Name string
|
||||||
Filter []string
|
Filter []string
|
||||||
|
|
Loading…
Reference in New Issue