Skip to content

Commit

Permalink
Trying to add codecoverage badge
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Sklyar committed Dec 31, 2015
1 parent c8adb35 commit 6d124f5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ go:
- tip

before_install:
- go get
- touch coverage.txt
- pip install --user codecov

script:
- go test -cover -coverprofile=coverage.txt -covermode=atomic ./...

after_success:
- codecov


5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# Long polling library for the Go language

[![API documentation][godocimage]][docs] [![Build status][buildimage]][travis]
[![Build status][buildimage]][travis] [![Coverage][codecovimage]][codecov] [![API documentation][godocimage]][docs]

go-longpoll::test
ok github.com/ventu-io/go-longpoll 6.886s coverage: 100.0% of statements
Expand Down Expand Up @@ -162,3 +162,6 @@ modification, are permitted provided that the [license conditions][license] are
[docs]: https://godoc.org/github.com/ventu-io/go-longpoll
[demo]: https://github.com/ventu-io/go-pubsub-examples/
[license]: https://github.com/ventu-io/go-longpoll/blob/master/LICENSE

[codecovimage]: https://codecov.io/github/ventu-io/go-longpoll/coverage.svg?branch=master
[codecov]: https://codecov.io/github/ventu-io/go-longpoll?branch=master

0 comments on commit 6d124f5

Please sign in to comment.