Skip to content

Commit

Permalink
Add install_dc_perl recipe with dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcj committed Apr 25, 2024
1 parent e644f5f commit ad90aa0
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions utils/dc
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand All @@ -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)
Expand Down

0 comments on commit ad90aa0

Please sign in to comment.