language: go go: - 1.3 - 1.4 - 1.5 - 1.6 before_install: - go get -u github.com/golang/lint/golint - if [[ $TRAVIS_GO_VERSION == 1.5* ]]; then go get -u github.com/kisielk/errcheck; fi - go get -u golang.org/x/tools/cmd/vet before_script: - '! gofmt -s -l . | read' - golint ./... - echo $TRAVIS_GO_VERSION - if [[ $TRAVIS_GO_VERSION == 1.5* ]]; then errcheck ./...; fi - go vet . - go tool vet --shadow .