2015-03-04 17:49:32 -05:00
|
|
|
machine:
|
|
|
|
# sudo -E doesn't preserve $PATH, so go isn't found anymore.
|
|
|
|
environment:
|
|
|
|
GO_BIN: $(which go)
|
2015-03-04 22:01:53 -05:00
|
|
|
GO_PATH: /home/ubuntu/.go_workspace/bin/
|
2015-03-04 17:49:32 -05:00
|
|
|
|
|
|
|
dependencies:
|
2015-03-04 22:01:53 -05:00
|
|
|
override:
|
2015-03-04 21:46:44 -05:00
|
|
|
- go get github.com/tools/godep
|
2015-03-04 17:49:32 -05:00
|
|
|
post:
|
|
|
|
- go get github.com/axw/gocov/gocov
|
|
|
|
- go get github.com/golang/lint/golint
|
|
|
|
- go get golang.org/x/tools/cmd/goimports
|
|
|
|
|
2015-03-04 17:14:38 -05:00
|
|
|
test:
|
|
|
|
override:
|
2015-03-04 22:01:53 -05:00
|
|
|
- test -z "$(goimports -l . | grep -v Godeps/_workspace/src/ | tee /dev/stderr)"
|
2015-03-04 17:49:32 -05:00
|
|
|
- go vet ./...
|
|
|
|
- test -z "$(golint ./... | tee /dev/stderr)"
|
|
|
|
- sudo -E $GO_BIN test -test.v ./...
|
2015-03-04 17:14:38 -05:00
|
|
|
|