Simplify coverage deployment scripts for Travis.

The condition is guarded in .travis.yml now, so we don't need the
explicit output of whether coverage is being sent.
This commit is contained in:
Qi Xiao 2018-09-14 13:47:54 +01:00
parent a8644560ac
commit ea9fe4876b

View File

@ -35,14 +35,12 @@ _cover/all: $(PKG_COVERS)
upload-codecov-travis: _cover/all
curl -s https://codecov.io/bash -o codecov.bash \
&& bash codecov.bash -f $< \
|| echo "not sending to codecov.io"
&& bash codecov.bash -f $<
upload-coveralls-travis: _cover/all
go get -d $(GOVERALLS) \
&& go build -o goveralls $(GOVERALLS) \
&& ./goveralls -coverprofile $< -service=travis-ci \
|| echo "not sending to coveralls.io"
&& ./goveralls -coverprofile $< -service=travis-ci
# Disable coverage reports for pull requests. The general testability of the
# code is pretty bad and it is premature to require contributors to maintain