mirror of
https://github.com/dart-lang/sdk
synced 2024-09-21 05:21:29 +00:00
4a6ecca102
The bots/flutter/analyze_flutter_flutter.sh script calls Flutter's [flutter]/dev/bots/analyze.dart test script. More tests have been added to that Flutter script, that test Flutter style guide policies and Kotlin lints. Avoid running all these tests, that do not depend on the Dart SDK being tested. Only run the tests from Flutter's analyze.dart test that use the Dart SDK analyzer. Bug: https://github.com/flutter/flutter/pull/143478 Change-Id: I12142a019a8cbeb70b40ca028d13325303e8db61 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/362483 Reviewed-by: Alexander Thomas <athom@google.com>
38 lines
1.1 KiB
Bash
Executable file
38 lines
1.1 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
# Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
|
|
# for details. All rights reserved. Use of this source code is governed by a
|
|
# BSD-style license that can be found in the LICENSE file.
|
|
|
|
# Analyze Dart code in the flutter/flutter repo.
|
|
|
|
set -ex
|
|
|
|
checkout=$(pwd)
|
|
dart=$checkout/out/ReleaseX64/dart-sdk/bin/dart
|
|
sdk=$checkout/out/ReleaseX64/dart-sdk
|
|
tmpdir=$(mktemp -d)
|
|
cd "$tmpdir"
|
|
|
|
git clone --single-branch -vv \
|
|
https://dart.googlesource.com/external/github.com/flutter/flutter
|
|
|
|
cd flutter
|
|
|
|
bin/flutter config --no-analytics
|
|
|
|
bin/flutter update-packages
|
|
|
|
# Run a subset of the tests run by [flutter]/dev/bots/analyze.dart.
|
|
# Run only the tests that use the built dart analyzer.
|
|
bin/flutter analyze --flutter-repo --dart-sdk $sdk
|
|
bin/flutter analyze --flutter-repo --watch --benchmark --dart-sdk $sdk
|
|
|
|
mkdir gallery
|
|
$dart dev/tools/mega_gallery.dart --out gallery
|
|
pushd gallery
|
|
../bin/flutter analyze --watch --benchmark --dart-sdk $sdk
|
|
popd
|
|
|
|
# Test flutter's use of data-driven fixes.
|
|
$dart fix --suppress-analytics packages/flutter/test_fixes --compare-to-golden
|