Skip to content

Commit

Permalink
Update cpancover.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcj committed May 28, 2012
1 parent d71d090 commit f587d0b
Show file tree
Hide file tree
Showing 2 changed files with 264 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/cpancover
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ use Parallel::Iterator "iterate_as_array";

# use Carp; $SIG{__DIE__} = \&Carp::confess;

$|++;

my $Template;

my $Options =
Expand Down Expand Up @@ -123,7 +125,7 @@ sub get_cover

my $od = "$Options->{outputdir}/$module";
my $of = $Options->{outputfile};
my $timeout = 1800; # Half an hour should be enough even for SVK
my $timeout = 300; # five minutes should be enough

if ($test || !-e "$od/$of" || $Options->{redo_html})
{
Expand Down
261 changes: 261 additions & 0 deletions utils/install_modules
Original file line number Diff line number Diff line change
@@ -0,0 +1,261 @@
#!/usr/bin/perl

# Copyright 2012, Paul Johnson (paul@pjcj.net)

# This software is free. It is licensed under the same terms as Perl itself.

# The latest version of this software should be available from my homepage:
# http://www.pjcj.net

use strict;
use warnings;

my $modules = <<EOM;
# Modules with many dependencies
Task::Kensho
Task::Plack
Task::Catalyst
Task::Dancer
Mojolicious
Task::Moose
Task::Dist::Zilla
Task::CPAN::SmokeBox
Task::Perl::Critic
Task::Toolchain::Test
Task::Template::Benchmark
MojoMojo
Jifty
Bot::BasicBot
Dist::Zilla
# Stuff for Devel::Cover
# Devel::Cover
.
Parallel::Iterator
Test::Pod::Coverage
# My stuff
Gedcom
Shell::Source
# There's going to be repetition down here
# Modules with many dependents
Exporter
Text::Tabs
Test::Harness
Pod::Escapes
Pod::Simple
IO
Getopt::Long
Pod::Parser
ExtUtils::MakeMaker
Test::Simple
ExtUtils::Manifest
constant
Test
Data::Dumper
File::Temp
ExtUtils::Install
Text::ParseWords
ExtUtils::CBuilder
ExtUtils::ParseXS
Module::Build
File::Path
XSLoader
MIME::Base64
Digest
Digest::MD5
Sub::Uplevel
URI
Test::Exception
HTML::Tagset
HTML::Parser
Compress::Raw::Zlib
Compress::Raw::Bzip2
Storable
base
List::MoreUtils
Params::Util
Task::Weaken
Sub::Install
Data::OptList
Sub::Exporter
Test::Tester
Test::NoWarnings
Attribute::Handlers
Class::Accessor
Algorithm::C3
Class::C3
Sub::Name
MRO::Compat
Time::HiRes
Params::Validate
Try::Tiny
Scope::Guard
Package::Stash
version
Tree::DAG_Node
Test::Warn
Devel::GlobalDestruction
Class::MOP
Moose
Class::Data::Inheritable
Test::Deep
Carp::Clan
Module::Pluggable
Variable::Magic
B::Hooks::EndOfScope
Sub::Identify
namespace::clean
Time::Local
DBI
Text::Balanced
Class::Inspector
Test::Pod
Encode
Path::Class
Digest::SHA1
FCGI
CGI
MooseX::Types
XML::NamespaceSupport
XML::SAX
Class::Singleton
Clone
DateTime::TimeZone
DateTime::Locale
YAML
DateTime
namespace::autoclean
IO::String
Algorithm::Diff
File::Slurp
Devel::StackTrace
# Modules which should not fail
IO
List::MoreUtils
Test::Harness
ExtUtils::MakeMaker
File::Path
XML::Parser
Test::Simple
HTML::Tree
Storable
Net::IP
DB_File
XML::LibXML
Time::HiRes
Exporter
Pod::Escapes
ExtUtils::ParseXS
Module::Build
Pod::Parser
Data::Dumper
ExtUtils::Install
IO::Tty
XML::SAX
Class::ErrorHandler
URI
HTML::Template
Compress::Raw::Zlib
Net::DNS
Test::Pod::Coverage
XSLoader
version
URI::Fetch
Pod::Simple
constant
Test
File::Temp
Template::Toolkit
Cache::Cache
Feed::Find
HTML::Tagset
ExtUtils::PkgConfig
Devel::GlobalDestruction
PadWalker
Sub::Name
Encode
Test::Base
Class::DBI::Plugin::Type
Sub::Identify
Sub::Uplevel
Params::Validate
POE
Class::Singleton
Proc::ProcessTable
Compress::Raw::Bzip2
Class::MOP
HTTP::Server::Simple
Sub::Exporter
Fuse
File::HomeDir
Bot::BasicBot
# URI::Find::Simple
base
# GD
WWW::Mechanize
Test::Most
Sys::Syslog
File::Slurp
Tree::DAG_Node
FCGI
Params::Util
Devel::Peek
DateTime::Format::Mail
Spiffy
HTML::TableExtract
DBD::SQLite
Class::Accessor::Chained
DBIx::ContextualFetch
Test::Tester
Variable::Magic
AppConfig
Class::Accessor
Want
XML::Simple
IO::All
Number::Format
Term::ReadKey
DBI
Test::Exception
# Web stuff
Authen::Passphrase::BlowfishCrypt
Carp::Always::Color
App::cpanoutdated
Dancer
Dancer::Plugin::Database
Dancer::Plugin::DBIC
Dancer::Plugin::SimpleCRUD
Data::Printer
DBD::SQLite
DBIx::Class::Schema::Loade
DBIx::Class::TimeStamp
Exporter::Lite
JSON
Module::Refresh
Moose
MooseX::Declare
MooseX::StrictConstructor
Plack::Middleware::Debug
Plack::Middleware::Debug::Dancer::Version
SQL::Translator
Starman
Template
Test::More
YAML
EOM

my @modules = grep /\S/, grep !/^ +#/, split /\n/, $modules;
s/^ +//, s/ +$// for @modules;
my %m; @modules = grep !$m{$_}++, @modules;

for my $mod (sort @modules)
{
system "cpanm $mod";
}

0 comments on commit f587d0b

Please sign in to comment.