20 lines
509 B
YAML
20 lines
509 B
YAML
dependencies:
|
|
post:
|
|
# install golint
|
|
- go get github.com/golang/lint/golint
|
|
# install binaries
|
|
- go install ./...
|
|
|
|
test:
|
|
pre:
|
|
# Vet go code for any potential errors
|
|
- go vet ./...
|
|
# Verify that all files are properly go formatted
|
|
- "[ `git ls-files | grep '.go$' | xargs gofmt -l 2>&1 | wc -l` -eq 0 ]"
|
|
override:
|
|
# Enforce that testutil, cmd, and main directory are fully linted
|
|
- golint .
|
|
- golint testutil/...
|
|
- golint cmd/...
|
|
# TODO run unit tests
|