X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=ci%2Fdeps.perl;h=06b4fbe0f2f3a0be7a939a94405fcf272528f9c1;hb=a318e758129d616b3b801db82c4735c680a2fbe8;hp=faca4590e156ae545509501f666fe2c774606a44;hpb=df5446c040b99bf2631e5da226e73a2fa82c7b15;p=public-inbox.git diff --git a/ci/deps.perl b/ci/deps.perl index faca4590..06b4fbe0 100755 --- a/ci/deps.perl +++ b/ci/deps.perl @@ -1,5 +1,5 @@ #!/usr/bin/perl -w -# Copyright (C) 2019 all contributors +# Copyright (C) 2019-2020 all contributors # License: AGPL-3.0+ # Helper script for installing/uninstalling packages for CI use # Intended for use on non-production chroots or VMs since it @@ -9,33 +9,37 @@ my $usage = "$0 PKG_FMT PROFILE [PROFILE_MOD]"; my $pkg_fmt = shift; @ARGV or die $usage, "\n"; +my @test_essential = qw(Test::Simple); # we actually use Test::More + # package profiles my $profiles = { - # the smallest possible profile - # TODO: trim this, Plack pulls in Filesys::Notify::Simple, - # and we don't need that for mda-only installs + # the smallest possible profile for testing + # TODO: trim URI::Escape from this, maybe essential => [ qw( git perl - Date::Parse Devel::Peek + Digest::SHA Email::Simple Email::MIME Email::MIME::ContentType Encode - Filesys::Notify::Simple - Plack + ExtUtils::MakeMaker + IO::Compress::Gzip URI::Escape - ) ], + ), @test_essential ], # everything optional for normal use optional => [ qw( + Date::Parse BSD::Resource DBD::SQLite DBI - IO::Compress::Gzip + Filesys::Notify::Simple Inline::C Net::Server + Plack + Plack::Test Plack::Middleware::Deflater Plack::Middleware::ReverseProxy Search::Xapian @@ -44,11 +48,9 @@ my $profiles = { xapian-compact ) ], - # developer stuff + # optional developer stuff devtest => [ qw( - IPC::Run - Test::HTTP::Server::Simple - XML::Feed + XML::TreePP curl w3m ) ], @@ -86,22 +88,41 @@ my $non_auto = { deb => 'perl', # libperl5.XX, but the XX varies pkg => 'perl5', }, + 'Digest::SHA' => { + deb => 'perl', # libperl5.XX, but the XX varies + pkg => 'perl5', + }, 'Encode' => { deb => 'perl', # libperl5.XX, but the XX varies pkg => 'perl5', rpm => 'perl-Encode', }, + 'ExtUtils::MakeMaker' => { + deb => 'perl', # perl-modules-5.xx + pkg => 'perl5', + rpm => 'perl-ExtUtils-MakeMaker', + }, 'IO::Compress::Gzip' => { deb => 'perl', # perl-modules-5.xx pkg => 'perl5', - rpm => 'perl-PerlIO-gzip', + rpm => 'perl-IO-Compress', }, 'DBD::SQLite' => { deb => 'libdbd-sqlite3-perl' }, + 'Plack::Test' => { + deb => 'libplack-perl', + pkg => 'p5-Plack', + rpm => 'perl-Plack-Test', + }, 'URI::Escape' => { deb => 'liburi-perl', pkg => 'p5-URI', rpm => 'perl-URI', }, + 'Test::Simple' => { + deb => 'perl', # perl-modules-5.XX, but the XX varies + pkg => 'perl5', + rpm => 'perl-Test-Simple', + }, 'highlight.pm' => { deb => 'libhighlight-perl', pkg => [],