language: go

go:
- 1.8

install:
- go get -u -v github.com/golang/lint/golint
- go get -u -v golang.org/x/tools/cmd/goimports

script:
- goimports -l $(find . -type f -name '*.go' ! -path "./vendor/*")
- test $(goimports -l $(find . -type f -name '*.go') | wc -l) -eq 0
- golint -set_exit_status $(go list | grep -v vendor)
- go vet $(go list | grep -v vendor)
- go test -cover $(go list | grep -v vendor)

language: go

+addons:
  apt:
    sources:
    - sourceline: "ppa:masterminds/glide"
    packages:
    - glide

go:
- 1.8

before_install:
- go get -u -v github.com/golang/lint/golint
- go get -u -v golang.org/x/tools/cmd/goimports

install:
- glide install

script:
- goimports -l $(find . -type f -name '*.go' ! -path "./vendor/*")
- test $(goimports -l $(find . -type f -name '*.go') | wc -l) -eq 0
- golint -set_exit_status $(go list | grep -v vendor)
- go vet $(go list | grep -v vendor)
- go test -cover $(go list | grep -v vendor)

Install glide and run in Travis build.
Install glide and run in Travis build.
