Disable tests that fail on non-master branches from running on those branches (#45455)

https://github.com/flutter/flutter/issues/45453
This commit is contained in:
Todd Volkert
2019-11-24 22:29:28 -08:00
committed by GitHub
parent 980f14e0c5
commit bae92c32e5
2 changed files with 26 additions and 14 deletions

View File

@@ -291,12 +291,20 @@ Future<void> _runBuildTests() async {
await _flutterBuildIpa(examplePath);
}
}
// Web compilation tests.
await _flutterBuildDart2js(path.join('dev', 'integration_tests', 'web'), path.join('lib', 'main.dart'));
// Should not fail to compile with dart:io.
await _flutterBuildDart2js(path.join('dev', 'integration_tests', 'web_compile_tests'),
path.join('lib', 'dart_io_import.dart'),
);
final String branch = Platform.environment['CIRRUS_BRANCH'];
if (branch != 'beta' && branch != 'stable') {
// Web compilation tests.
await _flutterBuildDart2js(
path.join('dev', 'integration_tests', 'web'),
path.join('lib', 'main.dart'),
);
// Should not fail to compile with dart:io.
await _flutterBuildDart2js(
path.join('dev', 'integration_tests', 'web_compile_tests'),
path.join('lib', 'dart_io_import.dart'),
);
}
}
Future<void> _flutterBuildAot(String relativePathToApplication) async {