Adding goimports check. From here on in, any PR that doesn't pass goimports will fail the CI build.

This commit is contained in:
Renan DelValle 2018-09-13 17:14:38 -07:00
parent 48318e026c
commit ad0da8c867
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9

View file

@ -5,9 +5,17 @@ language: go
go:
- "1.10.x"
env:
global:
- GO_USR_DIRS=$(go list -f {{.Dir}} ./... | grep -v /gen-go/)
services:
- docker
before_install:
- go get golang.org/x/tools/cmd/goimports
- test -z "`for d in $GO_USR_DIRS; do goimports -d $d/*.go | tee /dev/stderr; done`"
install:
- docker-compose up -d