Commit 7f0c98ab authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

Don't run coverage or docs in OS-X Travis instance (#11144)

parent 4d706ef1
...@@ -139,8 +139,9 @@ Future<Null> _runTests() async { ...@@ -139,8 +139,9 @@ Future<Null> _runTests() async {
Future<Null> _runCoverage() async { Future<Null> _runCoverage() async {
if (Platform.environment['TRAVIS'] == null || if (Platform.environment['TRAVIS'] == null ||
Platform.environment['TRAVIS_PULL_REQUEST'] != 'false') { Platform.environment['TRAVIS_PULL_REQUEST'] != 'false' ||
print('${bold}DONE: test.dart does not run coverage for Travis pull requests'); 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; return;
} }
......
...@@ -6,7 +6,8 @@ export PATH="$PWD/bin:$PWD/bin/cache/dart-sdk/bin:$PATH" ...@@ -6,7 +6,8 @@ export PATH="$PWD/bin:$PWD/bin/cache/dart-sdk/bin:$PATH"
LCOV_FILE=./packages/flutter/coverage/lcov.info LCOV_FILE=./packages/flutter/coverage/lcov.info
if [ "$SHARD" = "coverage" ] && \ if [ "$TRAVIS_OS_NAME" = "linux" ] && \
[ "$SHARD" = "coverage" ] && \
[ "$TRAVIS_PULL_REQUEST" = "false" ] && \ [ "$TRAVIS_PULL_REQUEST" = "false" ] && \
[ "$TRAVIS_BRANCH" = "master" ] && \ [ "$TRAVIS_BRANCH" = "master" ] && \
[ -f "$LCOV_FILE" ]; then [ -f "$LCOV_FILE" ]; then
...@@ -20,7 +21,8 @@ if [ "$SHARD" = "coverage" ] && \ ...@@ -20,7 +21,8 @@ if [ "$SHARD" = "coverage" ] && \
(cd packages/flutter && coveralls-lcov coverage/lcov.info) (cd packages/flutter && coveralls-lcov coverage/lcov.info)
fi fi
if [ "$SHARD" = "docs" ]; then if [ "$TRAVIS_OS_NAME" = "linux" ] && \
[ "$SHARD" = "docs" ]; then
# generate the API docs, upload them # generate the API docs, upload them
./dev/bots/docs.sh ./dev/bots/docs.sh
exit_code=$? exit_code=$?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment