Skip to content

Commit

Permalink
Use coveralls which is the same thing used in other repos
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Dec 2, 2019
1 parent a3685ae commit 410b751
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ services:
- docker
env:
- OS_NAME: linux
before_script:
- go get golang.org/x/tools/cmd/cover
- go get github.com/mattn/goveralls
script:
- ./build.sh _travis-${TRAVIS_OS_NAME}
- $GOPATH/bin/goveralls -coverprofile=coverage.cov -service=travis-ci
- ./scripts/travis_test.sh
after_success:
- bash <(curl -s https://codecov.io/bash)
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=coverage.txt -covermode=atomic ./...
go test -v -coverprofile=coverage.cov -covermode=atomic ./...

elif [ "$1" = "_travis-osx" ]; then
set -x
Expand All @@ -60,7 +60,7 @@ elif [ "$1" = "_travis-osx" ]; then
brew upgrade
brew install measurement-kit
$0 macos
go test -v -coverprofile=coverage.txt -covermode=atomic ./...
go test -v -coverprofile=coverage.cov -covermode=atomic ./...

elif [ "$1" = "help" ]; then
echo "Usage: $0 linux | macos | release | windows"
Expand Down

0 comments on commit 410b751

Please sign in to comment.