Integrate with Codecov (#1308)

This commit is contained in:
Ta-Ching Chen
2019-09-11 14:52:45 +08:00
committed by GitHub
parent 082c244b0b
commit ecb97db913
2 changed files with 12 additions and 2 deletions
+1
View File
@@ -54,6 +54,7 @@ before_cache:
- test/save_cache.sh # save docker cache
after_script:
- bash <(curl -s https://codecov.io/bash)
- kubectl --namespace default delete configmap -l travisID=${TRAVIS_BUILD_ID} # remove in-test configmap to indicate this CI build finished
notifications:
+11 -2
View File
@@ -20,8 +20,17 @@ else
fi
fi
go test -v -i $(go list ./... | grep -v '/vendor/' | grep -v 'examples/go' | grep -v 'benchmark')
set +x
# for codecov
echo "" > coverage.txt
# The executor unit test only works with NodePort-type services for
# now. So disable it for our travis ci tests.
go test -v $(go list ./... | grep -v '/vendor/' | grep -v 'examples/go' | grep -v executor | grep -v 'benchmark')
for d in $(go list ./... | grep -v '/vendor/' | grep -v 'examples/go' | grep -v executor | grep -v 'benchmark'); do
go test -v -coverprofile=profile.out -covermode=atomic $d
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
done