language: go
go:
    - 1.6
    - 1.5
    - 1.4
    - 1.3
    - 1.2
    - tip
os:
    - linux
    - osx
sudo: false
before_script:
    - gofmt -s -l -e .
    - go vet ./...
before_install:
    - go get -t -v ./...
    - go get github.com/mattn/goveralls
    - go get golang.org/x/tools/cmd/cover
script:
    - go test -v -short -covermode=count -coverprofile=coverage.out
    - go test -v -short -race
    - $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci
notifications:
    email: true
