[BUGFIX] .text-coverage for strange repos
This commit is contained in:
parent
06d61b6b71
commit
aacc788efe
|
@ -4,10 +4,6 @@
|
|||
CI=$1
|
||||
echo "run for $CI"
|
||||
|
||||
if [ "$CI" == "circle-ci" ]; then
|
||||
cd ${GOPATH}/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}
|
||||
fi
|
||||
|
||||
echo "mode: count" > profile.cov
|
||||
FAIL=0
|
||||
|
||||
|
@ -26,7 +22,7 @@ done
|
|||
|
||||
# Failures have incomplete results, so don't send
|
||||
if [ "$FAIL" -eq 0 ]; then
|
||||
goveralls -service=$CI -v -coverprofile=profile.cov
|
||||
goveralls -service=$CI -v -coverprofile=profile.cov -repotoken=$COVERALLS_REPO_TOKEN
|
||||
bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN -f profile.cov
|
||||
fi
|
||||
|
||||
|
|
Reference in New Issue