From ad90aa0b3832622a0714edd4848d7bf6aa68583c Mon Sep 17 00:00:00 2001 From: Paul Johnson Date: Thu, 25 Apr 2024 13:37:32 +0200 Subject: [PATCH] Add install_dc_perl recipe with dev dependencies --- utils/dc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/utils/dc b/utils/dc index 22a09c70..174ba989 100755 --- a/utils/dc +++ b/utils/dc @@ -156,12 +156,13 @@ main() { Moo namespace::clean CPAN::Releases::Latest JSON::MaybeXS \ CPAN::DistnameInfo HTML::Entities ;; - install_dzil) + install_development_dependencies) cpanm --notest App::cpm - cpm install --workers="$("$0" nice_cpus)" --global Dist::Zilla if command -v plenv >/dev/null 2>&1; then plenv rehash fi + cpm install --workers="$("$0" nice_cpus)" --global \ + Perl::Critic Perl::Tidy Dist::Zilla dzil authordeps --missing | xargs cpm install --workers="$("$0" nice_cpus)" --global dzil listdeps --missing | @@ -182,6 +183,14 @@ main() { PLENV_VERSION=cpancover plenv install-cpanm PLENV_VERSION=cpancover dc install_dependencies ;; + install_dc_perl) + version="${2:?No version specified}" + yes | plenv uninstall dc || true + plenv install --as dc -j 32 -D usedevel --noman "$version" + PLENV_VERSION=dc plenv install-cpanm + PLENV_VERSION=dc dc install_dependencies + PLENV_VERSION=dc dc install_development_dependencies + ;; cpancover) shift jobs=$("$0" nice_cpus)