From 9301a86a8670ae4077ea7bfa1e57f299bced9a8f Mon Sep 17 00:00:00 2001 From: Jenn Magder Date: Fri, 17 Jan 2020 15:28:01 -0800 Subject: [PATCH] Precache iOS artifacts (#49010) --- .../bin/tasks/platform_view_ios__start_up.dart | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dev/devicelab/bin/tasks/platform_view_ios__start_up.dart b/dev/devicelab/bin/tasks/platform_view_ios__start_up.dart index f60e2d874f8..f42650f7ead 100644 --- a/dev/devicelab/bin/tasks/platform_view_ios__start_up.dart +++ b/dev/devicelab/bin/tasks/platform_view_ios__start_up.dart @@ -19,7 +19,20 @@ Future main() async { ); await inDirectory(platformViewDirectory, () async { await flutter('pub', options: ['get']); + // Pre-cache the iOS artifacts; this may be the first test run on this machine. + await flutter( + 'precache', + options: [ + '--no-android', + '--no-fuchsia', + '--no-linux', + '--no-macos', + '--no-web', + '--no-windows', + ], + ); }); + final Directory iosDirectory = dir( '$platformViewDirectoryPath/ios', );