mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
0ac3833edb
Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com>
18 lines
485 B
YAML
18 lines
485 B
YAML
machine:
|
|
# sudo -E doesn't preserve $PATH, so go isn't found anymore.
|
|
environment:
|
|
GO_BIN: $(which go)
|
|
|
|
dependencies:
|
|
post:
|
|
- go get github.com/axw/gocov/gocov
|
|
- go get github.com/golang/lint/golint
|
|
- go get golang.org/x/tools/cmd/goimports
|
|
|
|
test:
|
|
override:
|
|
- test -z "$(goimports -d . | tee /dev/stderr)"
|
|
- go vet ./...
|
|
- test -z "$(golint ./... | tee /dev/stderr)"
|
|
- sudo -E $GO_BIN test -test.v ./...
|
|
|