Skip to content

Commit

Permalink
Add codecov.io test coverage to travis
Browse files Browse the repository at this point in the history
  • Loading branch information
matrixik committed Nov 11, 2019
1 parent 3b7df21 commit 7212696
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
_*
cover*.out
_*
cover*.out
cover*.txt
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ before_script:
- go get -v golang.org/x/lint/golint
- go get -v honnef.co/go/tools/cmd/staticcheck
- go vet ./...

script:
# run all our tests with race detector
- go test -v -race ./...
- go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
# "go vet on steroids" + linter
- staticcheck ./...

after_success:
- bash <(curl -s https://codecov.io/bash)

0 comments on commit 7212696

Please sign in to comment.