run codecov only on PRs
Otherwise we will have broken builds all the time. The coverage should
still match before the branch gets merged, but it doesn't have to on
every single commit - if we are using PRs to begin with.
@@ -5,6 +5,7 @@ addons:
after_success:
- WEAVIATE_VERSION=$(cat openapi-specs/schema.json| jq -r '.info.version')
- |
+ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
# send to codecov.io
# unit tests
rm -f coverage.txt || true; mv coverage-unit.txt coverage.txt
@@ -15,6 +16,7 @@ after_success:
bash <(curl -s https://codecov.io/bash) -F integration
rm coverage.txt
+ fi
- |
# only push to Dockerhub if master and not a PR
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
