Fix go vet in CI
It's necessary to compile the code first; otherwise go vet silently fails to load imports. Fixes #807. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
This commit is contained in:
parent
0b3b55e723
commit
5a37b46421
2 changed files with 8 additions and 3 deletions
|
@ -75,6 +75,11 @@ test:
|
|||
- gvm use stable && go version
|
||||
# - gvm use bleed && go version
|
||||
|
||||
# First thing: build everything. This will catch compile errors, and it's
|
||||
# also necessary for go vet to work properly (see #807).
|
||||
- gvm use stable && godep go install ./...:
|
||||
pwd: $BASE_STABLE
|
||||
|
||||
# FMT
|
||||
- gvm use stable && test -z "$(gofmt -s -l . | grep -v Godeps/_workspace/src/ | tee /dev/stderr)":
|
||||
pwd: $BASE_STABLE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue