Add code coverage integration
This commit is contained in:
parent
58199a020e
commit
cda9a3ee4f
2 changed files with 4 additions and 2 deletions
4
build.sh
4
build.sh
|
|
@ -51,7 +51,7 @@ elif [ "$1" = "_travis-linux" ]; then
|
|||
set -x
|
||||
$0 linux
|
||||
docker run -v `pwd`:/oonibuild -w /oonibuild -t oonibuild \
|
||||
go test -v -coverprofile=ooni.cov ./...
|
||||
go test -v -coverprofile=coverage.txt -covermode=atomic ./...
|
||||
|
||||
elif [ "$1" = "_travis-osx" ]; then
|
||||
set -x
|
||||
|
|
@ -60,7 +60,7 @@ elif [ "$1" = "_travis-osx" ]; then
|
|||
brew upgrade
|
||||
brew install measurement-kit
|
||||
$0 macos
|
||||
go test -v -coverprofile=ooni.cov ./...
|
||||
go test -v -coverprofile=coverage.txt -covermode=atomic ./...
|
||||
|
||||
elif [ "$1" = "help" ]; then
|
||||
echo "Usage: $0 linux | macos | release | windows"
|
||||
|
|
|
|||
Loading…
Reference in a new issue