From: Steve Hancock Date: Sun, 29 May 2022 18:52:59 +0000 (-0700) Subject: add running cpants_lint.pl to build sequence X-Git-Tag: 20220613~5 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=44e4c0c9b1b7a4f700488b52353d481a2242cd76;p=perltidy.git add running cpants_lint.pl to build sequence --- diff --git a/dev-bin/build.pl b/dev-bin/build.pl index ff70af77..6b5b68c3 100755 --- a/dev-bin/build.pl +++ b/dev-bin/build.pl @@ -26,6 +26,7 @@ chdir $git_home; # cpanm Perl::Critic # cpanm Tidy::All # cpanm Perl::::MinimumVersion (has perlver) +# cpanm App::CPANTS::Lint (has cpants_lint.pl) # sudo cpan App::perlbrew # perlbrew init # sudo apt-get install git @@ -356,6 +357,17 @@ sub make_dist { if ( ifyes( "OK. Make a .zip too? [Y/N], =$default", $default ) ) { make_zip($tar_gz_file); } + + if ( + ifyes( + "run cpants_lint.pl to check $tar_gz_file? [Y/N], ='Y'", "Y" + ) + ) + { + my $fout = "tmp/cpants_lint.out"; + my $cmd = "cpants_lint.pl $tar_gz_file >$fout 2>$fout"; + post_result($fout); + } return; } diff --git a/local-docs/Release-Checklist.md b/local-docs/Release-Checklist.md index 80c18b46..3e44194b 100644 --- a/local-docs/Release-Checklist.md +++ b/local-docs/Release-Checklist.md @@ -52,7 +52,12 @@ contents. Be sure it does not have unwanted files. - If necessary, remove MANIFEST, fix MANIFEST.SKIP and run make manifest again - run 'cpants-lint.pl' on the .tar.gz and check results + (this is an option in build.pl after making a new .tar.gz) - Do test installs on several systems +- Review the suggestions in Release::Checklist + + https://metacpan.org/pod/Release::Checklist + - Upload Release to CPAN - Update CPAN tickets - Upload release to sourceforge