.travis.yml

 1sudo: false
 2language: go
 3go:
 4  - 1.5.4
 5  - 1.6.2
 6  - tip
 7matrix:
 8  include:
 9    - go: 1.2.2
10      script:
11        - go get -t -v ./...
12        - go test -v -race ./...
13    - go: 1.3.3
14      script:
15        - go get -t -v ./...
16        - go test -v -race ./...
17    - go: 1.4.3
18      script:
19        - go get -t -v ./...
20        - go test -v -race ./...
21  allow_failures:
22    - go: tip
23  fast_finish: true
24install:
25  - # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step).
26script:
27  - go get -t -v ./...
28  - diff -u <(echo -n) <(gofmt -d -s .)
29  - go tool vet .
30  - go test -v -race ./...