@@ -37,6 +37,7 @@ const TURBO_MAPPING: &[(&str, &str)] = [
37
37
( "turbo_log_order" , "log_order" ) ,
38
38
( "turbo_remote_only" , "remote_only" ) ,
39
39
( "turbo_remote_cache_read_only" , "remote_cache_read_only" ) ,
40
+ ( "turbo_run_summary" , "run_summary" ) ,
40
41
]
41
42
. as_slice ( ) ;
42
43
@@ -84,6 +85,7 @@ impl ResolvedConfigurationOptions for EnvVars {
84
85
let force = self . truthy_value ( "force" ) . flatten ( ) ;
85
86
let remote_only = self . truthy_value ( "remote_only" ) . flatten ( ) ;
86
87
let remote_cache_read_only = self . truthy_value ( "remote_cache_read_only" ) . flatten ( ) ;
88
+ let run_summary = self . truthy_value ( "run_summary" ) . flatten ( ) ;
87
89
88
90
// Process timeout
89
91
let timeout = self
@@ -168,6 +170,7 @@ impl ResolvedConfigurationOptions for EnvVars {
168
170
force,
169
171
remote_only,
170
172
remote_cache_read_only,
173
+ run_summary,
171
174
172
175
// Processed numbers
173
176
timeout,
@@ -313,6 +316,7 @@ mod test {
313
316
env. insert ( "turbo_log_order" . into ( ) , "grouped" . into ( ) ) ;
314
317
env. insert ( "turbo_remote_only" . into ( ) , "1" . into ( ) ) ;
315
318
env. insert ( "turbo_remote_cache_read_only" . into ( ) , "1" . into ( ) ) ;
319
+ env. insert ( "turbo_run_summary" . into ( ) , "true" . into ( ) ) ;
316
320
317
321
let config = EnvVars :: new ( & env)
318
322
. unwrap ( )
@@ -323,6 +327,7 @@ mod test {
323
327
assert_eq ! ( config. log_order( ) , LogOrder :: Grouped ) ;
324
328
assert ! ( config. remote_only( ) ) ;
325
329
assert ! ( config. remote_cache_read_only( ) ) ;
330
+ assert ! ( config. run_summary( ) ) ;
326
331
assert_eq ! ( turbo_api, config. api_url. unwrap( ) ) ;
327
332
assert_eq ! ( turbo_login, config. login_url. unwrap( ) ) ;
328
333
assert_eq ! ( turbo_team, config. team_slug. unwrap( ) ) ;
@@ -359,6 +364,7 @@ mod test {
359
364
env. insert ( "turbo_log_order" . into ( ) , "" . into ( ) ) ;
360
365
env. insert ( "turbo_remote_only" . into ( ) , "" . into ( ) ) ;
361
366
env. insert ( "turbo_remote_cache_read_only" . into ( ) , "" . into ( ) ) ;
367
+ env. insert ( "turbo_run_summary" . into ( ) , "" . into ( ) ) ;
362
368
363
369
let config = EnvVars :: new ( & env)
364
370
. unwrap ( )
@@ -380,6 +386,7 @@ mod test {
380
386
assert_eq ! ( config. log_order( ) , LogOrder :: Auto ) ;
381
387
assert ! ( !config. remote_only( ) ) ;
382
388
assert ! ( !config. remote_cache_read_only( ) ) ;
389
+ assert ! ( !config. run_summary( ) ) ;
383
390
}
384
391
385
392
#[ test]
0 commit comments