Skip to content

Commit

Permalink
Code cleanup and minimal module validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tux committed Aug 5, 2023
1 parent f579c49 commit fb510c7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions script/release-test
Expand Up @@ -6,7 +6,7 @@
use 5.014002;
use warnings;

our $VERSION = "0.01 - 20230804";
our $VERSION = "0.02 - 20230805";
our $CMD = $0 =~ s{.*/}{}r;

sub usage {
Expand Down Expand Up @@ -80,11 +80,7 @@ unless ($opt_r) {
}
}

$release->load_mixin ("Module::Release::Prereq");

my $skip_prereqs = 1;
my $skip_dist = 1;
my $required = $release->config->required // "";
my $required = $release->config->required // "";

$ENV{AUTOMATED_TESTING} = 1;

Expand Down Expand Up @@ -116,6 +112,7 @@ PERL: foreach my $perl (@perls) {
$release->clean;

foreach my $mod (grep m/\S/ => split m/\s*,\s*/ => $required) {
$mod =~ m/^\w+(::\w+)*$/ or next;
system "$perl -M$mod -e1 >/dev/null 2>&1";
if ($?) {
warn "Prereq $mod not available\n";
Expand Down

0 comments on commit fb510c7

Please sign in to comment.