Add integration_test to integration tests build shard (#71934)

This commit is contained in:
Jenn Magder
2020-12-09 13:07:36 -08:00
committed by GitHub
parent f172c827cb
commit be1325f18b
29 changed files with 8 additions and 1413 deletions

View File

@@ -374,6 +374,7 @@ Future<void> _runWebToolTests() async {
/// target app.
Future<void> _runBuildTests() async {
final List<FileSystemEntity> exampleDirectories = Directory(path.join(flutterRoot, 'examples')).listSync()
..add(Directory(path.join(flutterRoot, 'packages', 'integration_test', 'example')))
..add(Directory(path.join(flutterRoot, 'dev', 'integration_tests', 'non_nullable')))
..add(Directory(path.join(flutterRoot, 'dev', 'integration_tests', 'flutter_gallery')));
@@ -471,18 +472,6 @@ Future<void> _flutterBuildIpa(String relativePathToApplication, {
}) async {
assert(Platform.isMacOS);
print('${green}Testing IPA build$reset for $cyan$relativePathToApplication$reset...');
// Install Cocoapods. We don't have these checked in for the examples,
// and build ios doesn't take care of it automatically.
final File podfile = File(path.join(flutterRoot, relativePathToApplication, 'ios', 'Podfile'));
if (podfile.existsSync()) {
await runCommand('pod',
<String>['install'],
workingDirectory: podfile.parent.path,
environment: <String, String>{
'LANG': 'en_US.UTF-8',
},
);
}
await _flutterBuild(relativePathToApplication, 'IPA', 'ios',
release: release,
verifyCaching: verifyCaching,