Skip to content

Commit

Permalink
Merge pull request #281 from thanhnguyennguyen/master
Browse files Browse the repository at this point in the history
export code coverage
  • Loading branch information
thanhson1085 committed May 28, 2020
2 parents c5cc99d + 91f253a commit f970bb4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .travis.yml
Expand Up @@ -29,6 +29,9 @@ jobs:
- while sleep 540; do echo "[ still running ]"; done &
- go run build/ci.go test -coverage
- kill %1
after_success:
- bash <(curl -s https://codecov.io/bash)

- go: '1.11.x'
script:
- sudo modprobe fuse
Expand Down
1 change: 1 addition & 0 deletions README.md
@@ -1,6 +1,7 @@
# TomoChain

[![Build Status](https://travis-ci.org/tomochain/tomochain.svg?branch=master)](https://travis-ci.org/tomochain/tomochain)
[![codecov](https://codecov.io/gh/tomochain/tomochain/branch/master/graph/badge.svg)](https://codecov.io/gh/tomochain/tomochain)
[![Join the chat at https://gitter.im/tomochain/tomochain](https://badges.gitter.im/tomochain/tomochain.svg)](https://gitter.im/tomochain/tomochain?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

## About TomoChain
Expand Down
2 changes: 1 addition & 1 deletion build/ci.go
Expand Up @@ -237,7 +237,7 @@ func doTest(cmdline []string) {
gotest := goTool("test", buildFlags(env)...)
gotest.Args = append(gotest.Args, "-p", "1")
if *coverage {
gotest.Args = append(gotest.Args, "-covermode=atomic", "-cover")
gotest.Args = append(gotest.Args, "-covermode=atomic", "-cover", "-coverprofile=coverage.txt")
}

gotest.Args = append(gotest.Args, packages...)
Expand Down

0 comments on commit f970bb4

Please sign in to comment.