File tree Expand file tree Collapse file tree 9 files changed +35
-46
lines changed Expand file tree Collapse file tree 9 files changed +35
-46
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,10 @@ if @*ARGS {
17
17
if % * ENV <TEST_FILES > {
18
18
@ files = % * ENV <TEST_FILES >. split (' ,' );
19
19
} else {
20
- for qx < git ls-files > . lines -> $ file {
21
- next unless $ file ~~ / '.pod6' $ /;
22
- push @ files , $ file ;
23
- }
20
+ @ files = qx < git ls-files > . lines ;
24
21
}
25
22
}
23
+ @ files = @ files . grep (/'.pod6' $ /);
26
24
27
25
plan + @ files ;
28
26
Original file line number Diff line number Diff line change @@ -10,17 +10,14 @@ if @*ARGS {
10
10
if % * ENV <TEST_FILES > {
11
11
@ files = % * ENV <TEST_FILES >. split (' ,' );
12
12
} else {
13
- for qx < git ls-files > . lines -> $ file {
14
- next if $ file eq " LICENSE" | " Makefile" ;
15
- next if $ file ~~ / 'custom-theme' /;
16
- next if $ file ~~ / 'jquery' /;
17
- next if $ file ~~ / '.png' $ /;
18
- next if $ file ~~ / '.ico' $ /;
19
-
20
- push @ files , $ file ;
21
- }
13
+ @ files = qx < git ls-files > . lines ;
22
14
}
23
15
}
16
+ @ files = @ files . grep ({$ _ ne ' LICENSE' | ' Makefile' })\
17
+ . grep ({! $ _ . contains (' custom-theme' )})\
18
+ . grep ({! $ _ . contains (' jquery' )})\
19
+ . grep ({! $ _ . ends-with (' .png' )})\
20
+ . grep ({! $ _ . ends-with (' .ico' )});
24
21
25
22
plan + @ files ;
26
23
Original file line number Diff line number Diff line change @@ -25,14 +25,13 @@ if @*ARGS {
25
25
if % * ENV <TEST_FILES > {
26
26
@ files = % * ENV <TEST_FILES >. split (' ,' );
27
27
} else {
28
- for qx < git ls-files > . lines -> $ file {
29
- next unless $ file ~~ / '.' ('pod6' | 'md' ) $ /;
30
- next if $ file ~~ / 'contributors.pod6' $ /; # names are hard.
31
- push @ files , $ file ;
32
- }
28
+ @ files = qx < git ls-files > . lines ;
33
29
}
34
30
}
35
31
32
+ @ files = @ files . grep ({$ _ . ends-with (' .pod6' ) or $ _ . ends-with (' .md' )})\
33
+ . grep ({! $ _ . ends-with (' contributors.pod6' )});
34
+
36
35
plan + @ files ;
37
36
my $ max-jobs = % * ENV <TEST_THREADS > // 2 ;
38
37
Original file line number Diff line number Diff line change @@ -24,12 +24,10 @@ if @*ARGS {
24
24
if % * ENV <TEST_FILES > {
25
25
@ files = % * ENV <TEST_FILES >. split (' ,' );
26
26
} else {
27
- for qx < git ls-files > . lines -> $ file {
28
- next unless $ file ~~ / '.' ('pod6' | 'md' ) $ /;
29
- push @ files , $ file ;
30
- }
27
+ @ files = qx < git ls-files > . lines ;
31
28
}
32
29
}
30
+ @ files = @ files . grep ({$ _ . ends-with (' .pod6' ) or $ _ . ends-with (' .md' )});
33
31
34
32
plan + @ files ;
35
33
Original file line number Diff line number Diff line change @@ -25,13 +25,12 @@ if @*ARGS {
25
25
if % * ENV <TEST_FILES > {
26
26
@ files = % * ENV <TEST_FILES >. split (' ,' );
27
27
} else {
28
- for qx < git ls-files doc > . lines -> $ file {
29
- next unless $ file ~~ / '.pod6' $ /;
30
- push @ files , $ file ;
31
- }
28
+ @ files = qx < git ls-files doc > . lines ;
32
29
}
33
30
}
34
31
32
+ @ files = @ files . grep ({$ _ . ends-with (' .pod6' )});
33
+
35
34
sub walk ($ arg ) {
36
35
given $ arg {
37
36
when Pod ::FormattingCode { walk $ arg . contents }
Original file line number Diff line number Diff line change @@ -9,13 +9,12 @@ if @*ARGS {
9
9
if % * ENV <TEST_FILES > {
10
10
@ files = % * ENV <TEST_FILES >. split (' ,' );
11
11
} else {
12
- for qx < git ls-files > . lines -> $ file {
13
- next unless $ file ~~ / '.pod6' $ /;
14
- push @ files , $ file ;
15
- }
12
+ @ files = qx < git ls-files doc > . lines ;
16
13
}
17
14
}
18
15
16
+ @ files = @ files . grep ({$ _ . ends-with (' .pod6' )});
17
+
19
18
plan + @ files ;
20
19
21
20
for @ files . sort -> $ file {
Original file line number Diff line number Diff line change @@ -12,10 +12,12 @@ if @*ARGS {
12
12
if % * ENV <TEST_FILES > {
13
13
@ files = % * ENV <TEST_FILES >. split (' ,' );
14
14
} else {
15
- @ files = qx < git ls-files > . lines . grep ( * ~~ / '.pod6' /) . grep ( * ~~ / Type | Language /) ;
15
+ @ files = qx < git ls-files > . lines ;
16
16
}
17
17
}
18
18
19
+ @ files = @ files . grep (* ~~ /'.pod6' /). grep (* ~~ /Type | Language /);
20
+
19
21
plan + @ files ;
20
22
21
23
for @ files -> $ file {
Original file line number Diff line number Diff line change @@ -16,14 +16,13 @@ if @*ARGS {
16
16
if % * ENV <TEST_FILES > {
17
17
@ files = % * ENV <TEST_FILES >. split (' ,' );
18
18
} else {
19
- for qx < git ls-files > . lines -> $ file {
20
- next unless $ file ~~ / '.' ('pod6' | 'md' ) $ /;
21
- next if $ file ~~ / 'contributors.pod6' $ /; # names are hard.
22
- push @ files , $ file ;
23
- }
19
+ @ files = qx < git ls-files > . lines ;
24
20
}
25
21
}
26
22
23
+ @ files = @ files . grep ({$ _ . ends-with (' .pod6' ) or $ _ . ends-with (' .md' )})\
24
+ . grep ({! $ _ . ends-with (' contributors.pod6' )});
25
+
27
26
plan + @ files ;
28
27
my $ max-jobs = % * ENV <TEST_THREADS > // 2 ;
29
28
my % output ;
Original file line number Diff line number Diff line change @@ -10,19 +10,17 @@ if @*ARGS {
10
10
if % * ENV <TEST_FILES > {
11
11
@ files = % * ENV <TEST_FILES >. split (' ,' );
12
12
} else {
13
- for qx < git ls-files > . lines -> $ file {
14
- next if $ file eq " LICENSE" | " Makefile" ;
15
- next if $ file ~~ / 'custom-theme' /;
16
- next if $ file ~~ / 'jquery' /;
17
- next if $ file ~~ / '.png' $ /;
18
- next if $ file ~~ / '.ico' $ /;
19
- next if $ file ~~ / 'util/trigger-rebuild.txt' /;
20
-
21
- push @ files , $ file ;
22
- }
13
+ @ files = qx < git ls-files > . lines ;
23
14
}
24
15
}
25
16
17
+ @ files = @ files . grep ({$ _ ne ' LICENSE' | ' Makefile' })\
18
+ . grep ({! $ _ . contains (' custom-theme' )})\
19
+ . grep ({! $ _ . contains (' util/trigger-rebuild.txt' )})\
20
+ . grep ({! $ _ . contains (' jquery' )})\
21
+ . grep ({! $ _ . ends-with (' .png' )})\
22
+ . grep ({! $ _ . ends-with (' .ico' )});
23
+
26
24
plan + @ files ;
27
25
28
26
for @ files -> $ file {
You can’t perform that action at this time.
0 commit comments