diff --git a/dev/bots/test.dart b/dev/bots/test.dart index ab4a62d170..c3d0be4edb 100644 --- a/dev/bots/test.dart +++ b/dev/bots/test.dart @@ -139,8 +139,9 @@ Future _runTests() async { Future _runCoverage() async { if (Platform.environment['TRAVIS'] == null || - Platform.environment['TRAVIS_PULL_REQUEST'] != 'false') { - print('${bold}DONE: test.dart does not run coverage for Travis pull requests'); + Platform.environment['TRAVIS_PULL_REQUEST'] != 'false' || + Platform.environment['TRAVIS_OS_NAME'] != 'linux') { + print('${bold}DONE: test.dart does not run coverage for Travis pull requests or not non-Linux environments'); return; } diff --git a/dev/bots/travis_upload.sh b/dev/bots/travis_upload.sh index 595ff8c9b3..0bd3bb89ed 100755 --- a/dev/bots/travis_upload.sh +++ b/dev/bots/travis_upload.sh @@ -6,7 +6,8 @@ export PATH="$PWD/bin:$PWD/bin/cache/dart-sdk/bin:$PATH" LCOV_FILE=./packages/flutter/coverage/lcov.info -if [ "$SHARD" = "coverage" ] && \ +if [ "$TRAVIS_OS_NAME" = "linux" ] && \ + [ "$SHARD" = "coverage" ] && \ [ "$TRAVIS_PULL_REQUEST" = "false" ] && \ [ "$TRAVIS_BRANCH" = "master" ] && \ [ -f "$LCOV_FILE" ]; then @@ -20,7 +21,8 @@ if [ "$SHARD" = "coverage" ] && \ (cd packages/flutter && coveralls-lcov coverage/lcov.info) fi -if [ "$SHARD" = "docs" ]; then +if [ "$TRAVIS_OS_NAME" = "linux" ] && \ + [ "$SHARD" = "docs" ]; then # generate the API docs, upload them ./dev/bots/docs.sh exit_code=$?