diff options
author | Bram <perl-rt@wizbit.be> | 2022-09-16 20:32:11 +0200 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2022-10-24 15:24:56 +1100 |
commit | 6e7890ddba1dbde6468dc4f1a558e5269b355e84 (patch) | |
tree | d0a702be1122bf3e5bf1a2a0ad546905b454f306 /Porting/test-dist-modules.pl | |
parent | e273bbe51f27f2f17d5f3a979b5a580854ccf97a (diff) | |
download | perl-6e7890ddba1dbde6468dc4f1a558e5269b355e84.tar.gz |
CI/dist-modules: Group output per dist
GitHub has support for grouping so use it in the dist-modules job.
Unfortunately there is no support for sub-groups (i.e. to group the
output of `perl Makefile.PL`, `make test` and `make install`) so one
group per dist has to be good enough.
(Also enable autoflush, it might not be needed but enabling it can't hurt.)
Diffstat (limited to 'Porting/test-dist-modules.pl')
-rw-r--r-- | Porting/test-dist-modules.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Porting/test-dist-modules.pl b/Porting/test-dist-modules.pl index 168af913ba..bb67112c30 100644 --- a/Porting/test-dist-modules.pl +++ b/Porting/test-dist-modules.pl @@ -7,9 +7,13 @@ use File::Temp "tempdir"; use ExtUtils::Manifest "maniread"; use Cwd "getcwd"; +$|++; + -f "Configure" or die "Expected to be run from a perl checkout"; +my $github_ci = $ENV{'GITHUB_SHA'} ? 1 : 0; + my $manifest = maniread(); my $start = getcwd() @@ -47,6 +51,7 @@ for my $dist (@dists) { sub test_dist { my ($name) = @_; + print "::group::Testing $name\n" if $github_ci; print "*** Testing $name ***\n"; my $dir = tempdir( CLEANUP => 1); system "cp", "-a", "dist/$name/.", "$dir/." @@ -140,6 +145,8 @@ EOM chdir $start or die "Cannot return to $start: $!\n"; + print "::endgroup::\n" if $github_ci; + $dir; } |