about summary refs log tree commit homepage
path: root/ci
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-05-22 02:14:02 +0000
committerEric Wong <e@80x24.org>2019-05-22 02:14:32 +0000
commitdf5446c040b99bf2631e5da226e73a2fa82c7b15 (patch)
tree0c2787b509391612814686f1c40dd27a7d6361be /ci
parent5a14109dadc1e4d38402dc75cdf5af714864ba33 (diff)
downloadpublic-inbox-df5446c040b99bf2631e5da226e73a2fa82c7b15.tar.gz
Tested on an amd64 chroot built with rinse 3.4
Diffstat (limited to 'ci')
-rwxr-xr-xci/deps.perl7
-rwxr-xr-xci/profiles.sh6
2 files changed, 13 insertions, 0 deletions
diff --git a/ci/deps.perl b/ci/deps.perl
index 32b0226e..faca4590 100755
--- a/ci/deps.perl
+++ b/ci/deps.perl
@@ -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";
 }
diff --git a/ci/profiles.sh b/ci/profiles.sh
index 5d7c2cf6..d559ec5f 100755
--- a/ci/profiles.sh
+++ b/ci/profiles.sh
@@ -70,4 +70,10 @@ essential
 essential devtest-
 EOF
         ;;
+centos-7) sed "s/^/$PKG_FMT /" <<EOF
+v2essential devtest
+essential devtest
+all Search::Xapian-
+EOF
+        ;;
 esac