1language: go
2
3go:
4    - master
5    - 1.x.x
6    - 1.8.x
7    - 1.7.x
8    - 1.6.x
9    - 1.5.x
10
11install:
12    - go get -t ./...
13    - env
14    - if [ "${TRAVIS_GO_VERSION%.*}" != "1.5" ]; then go get github.com/golang/lint/golint; fi
15script:
16    - go build -x ./...
17    - go test -cover ./...
18    - go vet ./...
19    - if [ "${TRAVIS_GO_VERSION%.*}" != "1.5" ]; then golint .; fi
20