Skip to content

Commit

Permalink
Preinstall Moose, per discussion in #72
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Jul 21, 2012
1 parent f881c90 commit cb5f073
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
11 changes: 7 additions & 4 deletions ci_environment/perlbrew/attributes/multi.rb
@@ -1,4 +1,7 @@
default[:perlbrew][:perls] = [{ :name => "5.16", :version => "perl-5.16.0" },
{ :name => "5.14", :version => "perl-5.14.2" },
{ :name => "5.12", :version => "perl-5.12.4" },
{ :name => "5.10", :version => "perl-5.10.1" }]
default[:perlbrew] = {
:perls => [{ :name => "5.16", :version => "perl-5.16.0" },
{ :name => "5.14", :version => "perl-5.14.2" },
{ :name => "5.12", :version => "perl-5.12.4" },
{ :name => "5.10", :version => "perl-5.10.1" }],
:modules => %w(Dist::Zilla Moose)
}
8 changes: 5 additions & 3 deletions ci_environment/perlbrew/recipes/multi.rb
Expand Up @@ -26,9 +26,11 @@
not_if "ls #{home}/perl5/perlbrew/perls | grep #{pl[:name]}"
end

bash "preinstall Dist::Zilla" do
setup.call(self)
code "#{brew} use #{pl[:name]} && cpanm Dist::Zilla --force --notest --mirror 'http://cpan.mirrors.travis-ci.org'"
node.perlbrew.modules.each do |mod|
bash "preinstall #{mod} via cpanm" do
setup.call(self)
code "#{brew} use #{pl[:name]} && cpanm #{mod} --force --notest --mirror 'http://cpan.mirrors.travis-ci.org'"
end
end
end

0 comments on commit cb5f073

Please sign in to comment.