]> git.donarmstrong.com Git - perltidy.git/commitdiff
add running cpants_lint.pl to build sequence
authorSteve Hancock <perltidy@users.sourceforge.net>
Sun, 29 May 2022 18:52:59 +0000 (11:52 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Sun, 29 May 2022 18:52:59 +0000 (11:52 -0700)
dev-bin/build.pl
local-docs/Release-Checklist.md

index ff70af779f7064fd3e8776c9bf323532ebf210dc..6b5b68c3d74fb75701a77cbe628fc597e6f41758 100755 (executable)
@@ -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], <cr>=$default", $default ) ) {
         make_zip($tar_gz_file);
     }
+
+    if (
+        ifyes(
+            "run cpants_lint.pl to check $tar_gz_file? [Y/N], <cr>='Y'", "Y"
+        )
+      )
+    {
+       my $fout   = "tmp/cpants_lint.out";
+       my $cmd = "cpants_lint.pl $tar_gz_file >$fout 2>$fout";
+       post_result($fout);
+    }
     return;
 }
 
index 80c18b46e3057acd299728a542807d0b3f5630ff..3e44194bb4efe0936543b8cfa36e4e42adbef450 100644 (file)
   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