travis: remove coveralls, only use codecov (#136)

This commit is contained in:
Robert van Gent
2019-02-25 14:35:53 -08:00
committed by GitHub
parent 7916902074
commit aa93d6ea07
3 changed files with 3 additions and 6 deletions

View File

@@ -41,9 +41,6 @@ install:
git clone _old $TRAVIS_REPO_SLUG; git clone _old $TRAVIS_REPO_SLUG;
cd $TRAVIS_REPO_SLUG; cd $TRAVIS_REPO_SLUG;
fi fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
go install github.com/mattn/goveralls;
fi
script: script:
- 'internal/runtests.sh' - 'internal/runtests.sh'

View File

@@ -2,7 +2,8 @@
[![Build Status](https://travis-ci.com/google/wire.svg?branch=master)][travis] [![Build Status](https://travis-ci.com/google/wire.svg?branch=master)][travis]
[![godoc](https://godoc.org/github.com/google/wire?status.svg)][godoc] [![godoc](https://godoc.org/github.com/google/wire?status.svg)][godoc]
[![Coverage Status](https://coveralls.io/repos/github/google/wire/badge.svg?branch=master)](https://coveralls.io/github/google/wire?branch=master) [![Coverage](https://codecov.io/gh/google/wire/branch/master/graph/badge.svg)](https://codecov.io/gh/google/wire)
Wire is a code generation tool that automates connecting components using Wire is a code generation tool that automates connecting components using
[dependency injection][]. Dependencies between components are represented in [dependency injection][]. Dependencies between components are represented in

View File

@@ -24,11 +24,10 @@ fi
result=0 result=0
# Run Go tests. Only do coverage for the Linux build # Run Go tests. Only do coverage for the Linux build
# because it is slow, and Coveralls will only save the last one anyway. # because it is slow, and codecov will only save the last one anyway.
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
go test -race -coverpkg=./... -coverprofile=coverage.out ./... || result=1 go test -race -coverpkg=./... -coverprofile=coverage.out ./... || result=1
if [ -f coverage.out ]; then if [ -f coverage.out ]; then
goveralls -coverprofile=coverage.out -service=travis-ci
bash <(curl -s https://codecov.io/bash) bash <(curl -s https://codecov.io/bash)
fi fi
# Ensure that the code has no extra dependencies (including transitive # Ensure that the code has no extra dependencies (including transitive