From e8a6df4df9fb8191ae9d30dd1d4c24f38a480248 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Tue, 14 Mar 2017 20:20:54 -0700 Subject: [PATCH] Only upload coverage data for the test shard (#8781) That's the only shard that computes new coverage data. --- dev/bots/travis_upload.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/bots/travis_upload.sh b/dev/bots/travis_upload.sh index 44fb62df95b..8e0b29ca69e 100755 --- a/dev/bots/travis_upload.sh +++ b/dev/bots/travis_upload.sh @@ -6,7 +6,7 @@ export PATH="$PWD/bin:$PWD/bin/cache/dart-sdk/bin:$PATH" LCOV_FILE=./packages/flutter/coverage/lcov.info -if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ] && [ -f "$LCOV_FILE" ]; then +if [ "$SHARD" = "tests" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ] && [ -f "$LCOV_FILE" ]; then GSUTIL=$HOME/google-cloud-sdk/bin/gsutil GCLOUD=$HOME/google-cloud-sdk/bin/gcloud