diff --git a/.travis.yml b/.travis.yml index c43aafb..075bdd3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,9 +3,14 @@ language: go go: 1.4 script: - go get golang.org/x/tools/cmd/vet + - go get github.com/modocache/gover - go get github.com/cloudflare/redoctober - go test github.com/cloudflare/redoctober... - go vet github.com/cloudflare/redoctober... + - 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 notifications: email: recipients: diff --git a/README.md b/README.md index 2fd7c51..4a39f0d 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ encryption and decryption server. ## Building -[![Build Status](https://travis-ci.org/cloudflare/redoctober.png?branch=master)](https://travis-ci.org/cloudflare/redoctober) [![Build Status](https://drone.io/github.com/cloudflare/redoctober/status.png)](https://drone.io/github.com/cloudflare/redoctober/latest) +[![Build Status](https://travis-ci.org/cloudflare/redoctober.png?branch=master)](https://travis-ci.org/cloudflare/redoctober) [![Build Status](https://drone.io/github.com/cloudflare/redoctober/status.png)](https://drone.io/github.com/cloudflare/redoctober/latest)[![Coverage Status](http://codecov.io/github/cloudflare/redoctober/coverage.svg?branch=master)](http://codecov.io/github/cloudflare/redoctober?branch=master) This project requires [Go 1.2](http://golang.org/doc/install#download) or later to compile. Verify your go version by running `go version`: