mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Switching coverage runs from Travis to infrabots. (#13038)
This commit is contained in:
parent
91bd8de65a
commit
19cac92793
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user