Skip to content
This repository
Browse code

Update cpancover.

  • Loading branch information...
commit f587d0b319b0bb807321d0b80f78e1fb8543f557 1 parent d71d090
Paul Johnson authored May 28, 2012
4  bin/cpancover
@@ -25,6 +25,8 @@ use Parallel::Iterator "iterate_as_array";
25 25
 
26 26
 # use Carp; $SIG{__DIE__} = \&Carp::confess;
27 27
 
  28
+$|++;
  29
+
28 30
 my $Template;
29 31
 
30 32
 my $Options =
@@ -123,7 +125,7 @@ sub get_cover
123 125
 
124 126
     my $od = "$Options->{outputdir}/$module";
125 127
     my $of = $Options->{outputfile};
126  
-    my $timeout = 1800;  # Half an hour should be enough even for SVK
  128
+    my $timeout = 300;  # five minutes should be enough
127 129
 
128 130
     if ($test || !-e "$od/$of" || $Options->{redo_html})
129 131
     {
261  utils/install_modules
... ...
@@ -0,0 +1,261 @@
  1
+#!/usr/bin/perl
  2
+
  3
+# Copyright 2012, Paul Johnson (paul@pjcj.net)
  4
+
  5
+# This software is free.  It is licensed under the same terms as Perl itself.
  6
+
  7
+# The latest version of this software should be available from my homepage:
  8
+# http://www.pjcj.net
  9
+
  10
+use strict;
  11
+use warnings;
  12
+
  13
+my $modules = <<EOM;
  14
+
  15
+    # Modules with many dependencies
  16
+    Task::Kensho
  17
+    Task::Plack
  18
+    Task::Catalyst
  19
+    Task::Dancer
  20
+    Mojolicious
  21
+    Task::Moose
  22
+    Task::Dist::Zilla
  23
+    Task::CPAN::SmokeBox
  24
+    Task::Perl::Critic
  25
+    Task::Toolchain::Test
  26
+    Task::Template::Benchmark
  27
+    MojoMojo
  28
+    Jifty
  29
+    Bot::BasicBot
  30
+    Dist::Zilla
  31
+
  32
+    # Stuff for Devel::Cover
  33
+    # Devel::Cover
  34
+    .
  35
+    Parallel::Iterator
  36
+    Test::Pod::Coverage
  37
+
  38
+    # My stuff
  39
+    Gedcom
  40
+    Shell::Source
  41
+
  42
+    # There's going to be repetition down here
  43
+
  44
+    # Modules with many dependents
  45
+    Exporter
  46
+    Text::Tabs
  47
+    Test::Harness
  48
+    Pod::Escapes
  49
+    Pod::Simple
  50
+    IO
  51
+    Getopt::Long
  52
+    Pod::Parser
  53
+    ExtUtils::MakeMaker
  54
+    Test::Simple
  55
+    ExtUtils::Manifest
  56
+    constant
  57
+    Test
  58
+    Data::Dumper
  59
+    File::Temp
  60
+    ExtUtils::Install
  61
+    Text::ParseWords
  62
+    ExtUtils::CBuilder
  63
+    ExtUtils::ParseXS
  64
+    Module::Build
  65
+    File::Path
  66
+    XSLoader
  67
+    MIME::Base64
  68
+    Digest
  69
+    Digest::MD5
  70
+    Sub::Uplevel
  71
+    URI
  72
+    Test::Exception
  73
+    HTML::Tagset
  74
+    HTML::Parser
  75
+    Compress::Raw::Zlib
  76
+    Compress::Raw::Bzip2
  77
+    Storable
  78
+    base
  79
+    List::MoreUtils
  80
+    Params::Util
  81
+    Task::Weaken
  82
+    Sub::Install
  83
+    Data::OptList
  84
+    Sub::Exporter
  85
+    Test::Tester
  86
+    Test::NoWarnings
  87
+    Attribute::Handlers
  88
+    Class::Accessor
  89
+    Algorithm::C3
  90
+    Class::C3
  91
+    Sub::Name
  92
+    MRO::Compat
  93
+    Time::HiRes
  94
+    Params::Validate
  95
+    Try::Tiny
  96
+    Scope::Guard
  97
+    Package::Stash
  98
+    version
  99
+    Tree::DAG_Node
  100
+    Test::Warn
  101
+    Devel::GlobalDestruction
  102
+    Class::MOP
  103
+    Moose
  104
+    Class::Data::Inheritable
  105
+    Test::Deep
  106
+    Carp::Clan
  107
+    Module::Pluggable
  108
+    Variable::Magic
  109
+    B::Hooks::EndOfScope
  110
+    Sub::Identify
  111
+    namespace::clean
  112
+    Time::Local
  113
+    DBI
  114
+    Text::Balanced
  115
+    Class::Inspector
  116
+    Test::Pod
  117
+    Encode
  118
+    Path::Class
  119
+    Digest::SHA1
  120
+    FCGI
  121
+    CGI
  122
+    MooseX::Types
  123
+    XML::NamespaceSupport
  124
+    XML::SAX
  125
+    Class::Singleton
  126
+    Clone
  127
+    DateTime::TimeZone
  128
+    DateTime::Locale
  129
+    YAML
  130
+    DateTime
  131
+    namespace::autoclean
  132
+    IO::String
  133
+    Algorithm::Diff
  134
+    File::Slurp
  135
+    Devel::StackTrace
  136
+
  137
+    # Modules which should not fail
  138
+    IO
  139
+    List::MoreUtils
  140
+    Test::Harness
  141
+    ExtUtils::MakeMaker
  142
+    File::Path
  143
+    XML::Parser
  144
+    Test::Simple
  145
+    HTML::Tree
  146
+    Storable
  147
+    Net::IP
  148
+    DB_File
  149
+    XML::LibXML
  150
+    Time::HiRes
  151
+    Exporter
  152
+    Pod::Escapes
  153
+    ExtUtils::ParseXS
  154
+    Module::Build
  155
+    Pod::Parser
  156
+    Data::Dumper
  157
+    ExtUtils::Install
  158
+    IO::Tty
  159
+    XML::SAX
  160
+    Class::ErrorHandler
  161
+    URI
  162
+    HTML::Template
  163
+    Compress::Raw::Zlib
  164
+    Net::DNS
  165
+    Test::Pod::Coverage
  166
+    XSLoader
  167
+    version
  168
+    URI::Fetch
  169
+    Pod::Simple
  170
+    constant
  171
+    Test
  172
+    File::Temp
  173
+    Template::Toolkit
  174
+    Cache::Cache
  175
+    Feed::Find
  176
+    HTML::Tagset
  177
+    ExtUtils::PkgConfig
  178
+    Devel::GlobalDestruction
  179
+    PadWalker
  180
+    Sub::Name
  181
+    Encode
  182
+    Test::Base
  183
+    Class::DBI::Plugin::Type
  184
+    Sub::Identify
  185
+    Sub::Uplevel
  186
+    Params::Validate
  187
+    POE
  188
+    Class::Singleton
  189
+    Proc::ProcessTable
  190
+    Compress::Raw::Bzip2
  191
+    Class::MOP
  192
+    HTTP::Server::Simple
  193
+    Sub::Exporter
  194
+    Fuse
  195
+    File::HomeDir
  196
+    Bot::BasicBot
  197
+    # URI::Find::Simple
  198
+    base
  199
+    # GD
  200
+    WWW::Mechanize
  201
+    Test::Most
  202
+    Sys::Syslog
  203
+    File::Slurp
  204
+    Tree::DAG_Node
  205
+    FCGI
  206
+    Params::Util
  207
+    Devel::Peek
  208
+    DateTime::Format::Mail
  209
+    Spiffy
  210
+    HTML::TableExtract
  211
+    DBD::SQLite
  212
+    Class::Accessor::Chained
  213
+    DBIx::ContextualFetch
  214
+    Test::Tester
  215
+    Variable::Magic
  216
+    AppConfig
  217
+    Class::Accessor
  218
+    Want
  219
+    XML::Simple
  220
+    IO::All
  221
+    Number::Format
  222
+    Term::ReadKey
  223
+    DBI
  224
+    Test::Exception
  225
+
  226
+    # Web stuff
  227
+    Authen::Passphrase::BlowfishCrypt
  228
+    Carp::Always::Color
  229
+    App::cpanoutdated
  230
+    Dancer
  231
+    Dancer::Plugin::Database
  232
+    Dancer::Plugin::DBIC
  233
+    Dancer::Plugin::SimpleCRUD
  234
+    Data::Printer
  235
+    DBD::SQLite
  236
+    DBIx::Class::Schema::Loade
  237
+    DBIx::Class::TimeStamp
  238
+    Exporter::Lite
  239
+    JSON
  240
+    Module::Refresh
  241
+    Moose
  242
+    MooseX::Declare
  243
+    MooseX::StrictConstructor
  244
+    Plack::Middleware::Debug
  245
+    Plack::Middleware::Debug::Dancer::Version
  246
+    SQL::Translator
  247
+    Starman
  248
+    Template
  249
+    Test::More
  250
+    YAML
  251
+
  252
+EOM
  253
+
  254
+my @modules = grep /\S/, grep !/^ +#/, split /\n/, $modules;
  255
+s/^ +//, s/ +$// for @modules;
  256
+my %m; @modules = grep !$m{$_}++, @modules;
  257
+
  258
+for my $mod (sort @modules)
  259
+{
  260
+    system "cpanm $mod";
  261
+}

0 notes on commit f587d0b

Please sign in to comment.
Something went wrong with that request. Please try again.