evalphobia/eurekache

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
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