.travis.yml
sudo: false
language: go
services:
- redis-server
go:
- 1.5
- 1.6
- tip
matrix:
allow_failures:
- go: tip
before_install:
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
- go get github.com/modocache/gover
before_script:
- go vet ./...
- gofmt -s -l .
script:
- go list -f '{{if len .TestGoFiles}}"go test -coverprofile={{.Dir}}/.coverprofile {{.ImportPath}}"{{end}}' ./... | xargs -I{} sh -c '{}'
- gover . coverprofile.txt
after_success:
- bash <(curl -s https://codecov.io/bash) -f coverprofile.txt