Switching coverage runs from Travis to infrabots. (#13038)

This commit is contained in:
Greg Spencer 2017-11-15 21:15:11 -08:00 committed by GitHub
parent 91bd8de65a
commit 19cac92793
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 21 deletions

View File

@ -171,10 +171,8 @@ Future<Null> _runTests() async {
}
Future<Null> _runCoverage() async {
if (Platform.environment['TRAVIS'] == null ||
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 in non-Linux environments');
if (Platform.environment['TRAVIS'] != null) {
print('${bold}DONE: test.dart does not run coverage in Travis$reset');
return;
}

View File

@ -4,23 +4,6 @@ set -ex
export PATH="$PWD/bin:$PWD/bin/cache/dart-sdk/bin:$PATH"
LCOV_FILE=./packages/flutter/coverage/lcov.info
if [ "$TRAVIS_OS_NAME" = "linux" ] && \
[ "$SHARD" = "coverage" ] && \
[ "$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
$GCLOUD auth activate-service-account --key-file ../gcloud_key_file.json
STORAGE_URL=gs://flutter_infra/flutter/coverage/lcov.info
$GSUTIL cp $LCOV_FILE $STORAGE_URL
(cd packages/flutter && coveralls-lcov coverage/lcov.info)
fi
if [ "$TRAVIS_OS_NAME" = "linux" ] && \
[ "$SHARD" = "docs" ]; then
# generate the API docs, upload them