]> Sergey Matveev's repositories - public-inbox.git/commitdiff
ci: support CentOS-7
authorEric Wong <e@80x24.org>
Wed, 22 May 2019 02:14:02 +0000 (02:14 +0000)
committerEric Wong <e@80x24.org>
Wed, 22 May 2019 02:14:32 +0000 (02:14 +0000)
Tested on an amd64 chroot built with rinse 3.4

ci/deps.perl
ci/profiles.sh

index 32b0226e82a4e5efaa453404844d248b28abc91a..faca4590e156ae545509501f666fe2c774606a44 100755 (executable)
@@ -58,6 +58,8 @@ my $profiles = {
 my @precious;
 if ($^O eq 'freebsd') {
        @precious = qw(perl curl Socket6 IO::Compress::Gzip);
+} elsif ($pkg_fmt eq 'rpm') {
+       @precious = qw(perl curl);
 }
 
 if (@precious) {
@@ -168,6 +170,11 @@ if ($pkg_fmt eq 'deb') {
        root(qw(pkg install -y), @quiet, @pkg_install) if @pkg_install;
        root(qw(pkg autoremove -y), @quiet);
 # TODO: yum / rpm support
+} elsif ($pkg_fmt eq 'rpm') {
+       my @quiet = $ENV{V} ? () : ('-q');
+       exclude_uninstalled(\@pkg_remove);
+       root(qw(yum remove -y), @quiet, @pkg_remove) if @pkg_remove;
+       root(qw(yum install -y), @quiet, @pkg_install) if @pkg_install;
 } else {
        die "unsupported package format: $pkg_fmt\n";
 }
index 5d7c2cf6d2297dddf80e5dbc1dc361ce9ed1cda0..d559ec5f9b742161b80271a429b62f6442bdab74 100755 (executable)
@@ -68,6 +68,12 @@ all devtest-
 v2essential
 essential
 essential devtest-
+EOF
+       ;;
+centos-7) sed "s/^/$PKG_FMT /" <<EOF
+v2essential devtest
+essential devtest
+all Search::Xapian-
 EOF
        ;;
 esac