NAME

Dist::Zilla::Plugin::Author::GETTY::InstallCheck - Test-install the release tarball with cpanm before it is uploaded

VERSION

version 0.329

DESCRIPTION

Runs cpanm --test-only on the release tarball before the release uploads it. The tarball is unpacked, built and tested the way a user's cpanm and a CPAN tester do it: below cpanm's own working directory, outside of the checkout, from blib, with the author and release test switches off. Missing dependencies come from ~/perl5 or from CPAN, as they do for a user.

This catches what the tests inside the checkout and the .build directory of Dist::Zilla::Plugin::TestRelease cannot: a test file that only passes there, a requirement that is missing from the cpanfile, a dependency that cannot be resolved. The check has to run before the upload, because an upload cannot be taken back: once the version is on CPAN, a failed installation by Dist::Zilla::Plugin::InstallRelease comes too late.

RELEASE_TESTING and AUTHOR_TESTING are removed from the environment of the command; the rest of the environment is passed through. A command that does not end with 0 aborts the release, and nothing has been uploaded.

Dist::Zilla::PluginBundle::Author::GETTY adds this plugin after TestRelease and before ConfirmRelease, unless no_installrelease or one of the Alien options is set.

command

The command to run, as a list without shell. The tarball path is appended. Default: cpanm --test-only. Repeatable.

SUPPORT

Issues

Please report bugs and feature requests at https://github.com/Getty/p5-dist-zilla-pluginbundle-author-getty/issues.

CONTRIBUTING

Contributions are welcome! Please fork the repository and submit a pull request.

AUTHOR

Torsten Raudssus <getty@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012-2026 by Torsten Raudssus <torsten@raudssus.de> https://raudssus.de/.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.