Unverified Commit 19cac927 authored by Greg Spencer's avatar Greg Spencer Committed by GitHub

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

parent 91bd8de6
......@@ -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;
}
......
......@@ -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
......
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