Adding goimports check. From here on in, any PR that doesn't pass goimports will fail the CI build.
This commit is contained in:
parent
48318e026c
commit
ad0da8c867
1 changed files with 8 additions and 0 deletions
|
@ -5,9 +5,17 @@ language: go
|
||||||
go:
|
go:
|
||||||
- "1.10.x"
|
- "1.10.x"
|
||||||
|
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
- GO_USR_DIRS=$(go list -f {{.Dir}} ./... | grep -v /gen-go/)
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- 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:
|
install:
|
||||||
- docker-compose up -d
|
- docker-compose up -d
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue