Skip to content

Commit

Permalink
Use inspected dist.ini verbatim so that mod names get rewritten
Browse files Browse the repository at this point in the history
  • Loading branch information
rwstauner committed Jul 19, 2015
1 parent 9a25339 commit 0cbe341
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ perl:
env:
global:
- COVERAGE=1
- INSPECTOR=Dist::Zilla::Config::BundleInspector

before_install:

Expand All @@ -27,9 +26,13 @@ before_install:
perl -V
depdir="$(mktemp -d -t authordeps-XXXXXX)";
# Install author deps once to get bundle inspector, roles, etc.
$helper_dir/bin/cpan-install `dzil authordeps`
perl -Ilib -M$INSPECTOR -e "print $INSPECTOR->new(bundle_class => q[Dist::Zilla::PluginBundle::Author::RWSTAUNER])->ini_string" | perl -lne 'print "; authordep $1" if m{^\[(.+?)(\s*\/.+?)?]$}' | sort | uniq >> $depdir/dist.ini
INSPECTOR=Dist::Zilla::Config::BundleInspector
perl -Ilib -M$INSPECTOR -e "print $INSPECTOR->new(bundle_class => q[Dist::Zilla::PluginBundle::Author::RWSTAUNER])->ini_string" >> $depdir/dist.ini
# Now install the deps the inpector told us about.
$helper_dir/bin/cpan-install `dzil authordeps --root $depdir`
Expand Down

0 comments on commit 0cbe341

Please sign in to comment.