]> Sergey Matveev's repositories - public-inbox.git/blobdiff - ci/deps.perl
No ext_urls
[public-inbox.git] / ci / deps.perl
index faca4590e156ae545509501f666fe2c774606a44..ae85986d622f87bd30563fc168f41fd128f3543d 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/perl -w
-# Copyright (C) 2019 all contributors <meta@public-inbox.org>
+# Copyright (C) 2019-2021 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 # Helper script for installing/uninstalling packages for CI use
 # Intended for use on non-production chroots or VMs since it
@@ -9,34 +9,31 @@ 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
        essential => [ qw(
                git
                perl
-               Date::Parse
-               Devel::Peek
-               Email::Simple
-               Email::MIME
-               Email::MIME::ContentType
+               Digest::SHA
                Encode
-               Filesys::Notify::Simple
-               Plack
-               URI::Escape
-               ) ],
+               ExtUtils::MakeMaker
+               IO::Compress::Gzip
+               URI
+               ), @test_essential ],
 
        # everything optional for normal use
        optional => [ qw(
+               Date::Parse
                BSD::Resource
                DBD::SQLite
                DBI
-               IO::Compress::Gzip
                Inline::C
                Net::Server
-               Plack::Middleware::Deflater
+               Plack
+               Plack::Test
                Plack::Middleware::ReverseProxy
                Search::Xapian
                Socket6
@@ -44,13 +41,12 @@ my $profiles = {
                xapian-compact
                ) ],
 
-       # developer stuff
+       # optional developer stuff
        devtest => [ qw(
-               IPC::Run
-               Test::HTTP::Server::Simple
-               XML::Feed
+               XML::TreePP
                curl
                w3m
+               Plack::Test::ExternalServer
                ) ],
 };
 
@@ -82,7 +78,7 @@ my $non_auto = {
                pkg => 'p5-TimeDate',
                rpm => 'perl-TimeDate',
        },
-       'Devel::Peek' => {
+       'Digest::SHA' => {
                deb => 'perl', # libperl5.XX, but the XX varies
                pkg => 'perl5',
        },
@@ -91,17 +87,32 @@ my $non_auto = {
                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' },
-       'URI::Escape' => {
+       'Plack::Test' => {
+               deb => 'libplack-perl',
+               pkg => 'p5-Plack',
+               rpm => 'perl-Plack-Test',
+       },
+       'URI' => {
                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 => [],