Use coveralls which is the same thing used in other repos
This commit is contained in:
parent
a3685ae6b0
commit
410b7514d7
|
@ -5,8 +5,10 @@ services:
|
||||||
- docker
|
- docker
|
||||||
env:
|
env:
|
||||||
- OS_NAME: linux
|
- OS_NAME: linux
|
||||||
|
before_script:
|
||||||
|
- go get golang.org/x/tools/cmd/cover
|
||||||
|
- go get github.com/mattn/goveralls
|
||||||
script:
|
script:
|
||||||
- ./build.sh _travis-${TRAVIS_OS_NAME}
|
- ./build.sh _travis-${TRAVIS_OS_NAME}
|
||||||
|
- $GOPATH/bin/goveralls -coverprofile=coverage.cov -service=travis-ci
|
||||||
- ./scripts/travis_test.sh
|
- ./scripts/travis_test.sh
|
||||||
after_success:
|
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
|
||||||
|
|
4
build.sh
4
build.sh
|
@ -51,7 +51,7 @@ elif [ "$1" = "_travis-linux" ]; then
|
||||||
set -x
|
set -x
|
||||||
$0 linux
|
$0 linux
|
||||||
docker run -v `pwd`:/oonibuild -w /oonibuild -t oonibuild \
|
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
|
elif [ "$1" = "_travis-osx" ]; then
|
||||||
set -x
|
set -x
|
||||||
|
@ -60,7 +60,7 @@ elif [ "$1" = "_travis-osx" ]; then
|
||||||
brew upgrade
|
brew upgrade
|
||||||
brew install measurement-kit
|
brew install measurement-kit
|
||||||
$0 macos
|
$0 macos
|
||||||
go test -v -coverprofile=coverage.txt -covermode=atomic ./...
|
go test -v -coverprofile=coverage.cov -covermode=atomic ./...
|
||||||
|
|
||||||
elif [ "$1" = "help" ]; then
|
elif [ "$1" = "help" ]; then
|
||||||
echo "Usage: $0 linux | macos | release | windows"
|
echo "Usage: $0 linux | macos | release | windows"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user