CiRun constructor
CiRun({
- required String toolName,
- required String repositoryRoot,
- required String lockPath,
- required Map<
String, String> stageDescriptions, - required CiStageRunner runStage,
- required StringSink console,
- String? logRoot,
- String? runDir,
- String? flutter,
- String? dart,
- String? findFlutter() = ciFlutterExecutable,
Implementation
CiRun({
required this.toolName,
required this.repositoryRoot,
required this.lockPath,
required this.stageDescriptions,
required this.runStage,
required this.console,
String? logRoot,
String? runDir,
String? flutter,
String? dart,
String? Function() findFlutter = ciFlutterExecutable,
}) : runDir =
runDir ??
p.join(
logRoot ?? p.join(repositoryRoot, 'testlog'),
ciTimestamp(DateTime.now()),
),
dart = dart ?? ciDartExecutable(),
flutter = flutter ?? findFlutter() {
runner = CiProcessRunner(
lock: CiLock(lockPath),
pathPrefix: this.flutter == null ? null : p.dirname(this.flutter!),
onLockWait: (waited) => console.write(
'\n waiting for $lockPath (${formatCiDuration(waited)}) — another '
'session runs flutter',
),
);
}