// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:io' show Platform; import 'package:path/path.dart' as path; import '../run_command.dart'; import '../utils.dart'; Future customerTestingRunner() async { printProgress('${green}Running customer testing$reset'); await runCommand('git', const [ 'fetch', 'origin', 'master', ], workingDirectory: flutterRoot); await runCommand('git', const [ 'branch', '-f', 'master', 'origin/master', ], workingDirectory: flutterRoot); final Map env = Platform.environment; final String? revision = env['REVISION']; if (revision != null) { await runCommand('git', ['checkout', revision], workingDirectory: flutterRoot); } final String winScript = path.join(flutterRoot, 'dev', 'customer_testing', 'ci.bat'); await runCommand( Platform.isWindows ? winScript : './ci.sh', [], workingDirectory: path.join(flutterRoot, 'dev', 'customer_testing'), ); }