Turn Dart 2 mode by default. (#15565)

This commit is contained in:
Vyacheslav Egorov
2018-03-16 20:29:38 +01:00
committed by GitHub
parent c663e3367d
commit 71b2cfb2a0
20 changed files with 319 additions and 250 deletions

View File

@@ -29,7 +29,6 @@ const Map<String, ShardRunner> _kShards = const <String, ShardRunner>{
'docs': _generateDocs,
'analyze': _analyzeRepo,
'tests': _runTests,
'tests_dart2': _runTestsDart2,
'coverage': _runCoverage,
};
@@ -130,15 +129,6 @@ Future<Null> _analyzeRepo() async {
print('${bold}DONE: Analysis successful.$reset');
}
Future<Null> _runTestsDart2() async {
if (Platform.isWindows) {
// AppVeyor platform is overloaded, won't be able to handle additional
// load of dart2 testing.
return;
}
_runTests(options: <String>['--preview-dart-2']);
}
Future<Null> _runTests({List<String> options: const <String>[]}) async {
// Verify that the tests actually return failure on failure and success on success.
final String automatedTests = path.join(flutterRoot, 'dev', 'automated_tests');
@@ -631,4 +621,4 @@ Future<Null> _verifyVersion(String filename) async {
print('$red━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━$reset');
exit(1);
}
}
}