language: go

go:
 - 1.2.2
 - 1.3

install:
 - go get code.google.com/p/go.tools/cmd/vet
 - go get -t -v ./...
 - go  install -a -race std

script:
 - go tool vet -all .
 - go build ./...
 - go test -race -v ./...

language: go

go:
 - 1.3.1
 - tip

matrix:
  fast_finish: true

env:
  global:
    - PATH=$HOME/gopath/bin:$PATH
    - secure: "SmBBCn0QhOvlbP/sESKmTeVyFQR4hdsXKBXAP7/6AnsLZ/PhoWIkHkRFkH97nHtwLJwklZ8JyyhXUeXuDuE36DHLV0NDvw3Z9j543XC8mgI40BnMnqobf39aA9pl8s+6fWTyO7Sbjzv8AueEZv+K1r2JeFK+ReGZuwoVc7fxnhI="

install:
 - go get code.google.com/p/go.tools/cmd/vet code.google.com/p/go.tools/cmd/cover github.com/mattn/goveralls github.com/modocache/gover
 - go get -t -v ./...
 - go  install -a -race std

script:
 - go tool vet -all .
 - go build ./...
 - go test -race -v ./...
 - go list -f '{{if len .TestGoFiles}}go test -coverprofile={{.Dir}}/.coverprofile {{.ImportPath}}{{end}}' ./... | xargs -i sh -c {}
 - gover
 - goveralls -coverprofile=gover.coverprofile -service=travis-ci -repotoken $COVERALLS_TOKEN

Send coverage profiles to coveralls.io
Send coverage profiles to coveralls.io
