[perl PATCH] maint: Drop autobuild.sh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The Test-AutoBuild project, that this script is supposed
to be used with, hasn't seen any activity in ~7 years;
these days, libvirt-perl CI builds are happening on the
Jenkins-based CentOS CI environment under the libvirt
umbrella[1], and in that context the script is not used
at all.

[1] https://ci.centos.org/view/libvirt/

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 autobuild.sh | 74 ------------------------------------------------------------
 1 file changed, 74 deletions(-)
 delete mode 100755 autobuild.sh

diff --git a/autobuild.sh b/autobuild.sh
deleted file mode 100755
index 8a6d102..0000000
--- a/autobuild.sh
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/bin/sh
-#
-# This script is used to Test::AutoBuild (http://www.autobuild.org)
-# to perform automated builds of the Sys-Virt module
-
-NAME=Sys-Virt
-
-set -e
-
-test -n "$1" && RESULTS=$1 || RESULTS=results.log
-: ${AUTOBUILD_INSTALL_ROOT=$HOME/builder}
-
-make -k realclean ||:
-rm -rf MANIFEST blib pm_to_blib
-
-export TEST_MAINTAINER=1
-
-perl Makefile.PL  PREFIX=$AUTOBUILD_INSTALL_ROOT
-
-rm -f MANIFEST
-
-# Build the RPM.
-make
-make manifest
-
-if [ -z "$USE_COVER" ]; then
-  perl -MDevel::Cover -e '' 1>/dev/null 2>&1 && USE_COVER=1 || USE_COVER=0
-fi
-
-if [ -z "$SKIP_TESTS" -o "$SKIP_TESTS" = "0" ]; then
-  if [ "$USE_COVER" = "1" ]; then
-    cover -delete
-    export HARNESS_PERL_SWITCHES=-MDevel::Cover
-  fi
-
-  # set -o pipefail is a bashism; this use of exec is the POSIX alternative
-  exec 3>&1
-  st=$(
-      exec 4>&1 >&3
-      { make test 2>&1 3>&- 4>&-; echo $? >&4; } | tee "$RESULTS"
-  )
-  exec 3>&-
-  test "$st" = 0
-
-  if [ "$USE_COVER" = "1" ]; then
-    cover
-    mkdir blib/coverage
-    cp -a cover_db/*.html cover_db/*.css blib/coverage
-    mv blib/coverage/coverage.html blib/coverage/index.html
-  fi
-fi
-
-make install
-
-rm -f $NAME-*.tar.gz
-make dist
-
-if [ -f /usr/bin/rpmbuild ]; then
-  if [ -n "$AUTOBUILD_COUNTER" ]; then
-    EXTRA_RELEASE=".auto$AUTOBUILD_COUNTER"
-  else
-    NOW=`date +"%s"`
-    EXTRA_RELEASE=".$USER$NOW"
-  fi
-  rpmbuild --nodeps -ta --define "extra_release $EXTRA_RELEASE" --clean $NAME-*.tar.gz
-fi
-
-# Skip debian pkg for now
-exit 0
-
-if [ -f /usr/bin/fakeroot ]; then
-  fakeroot debian/rules clean
-  fakeroot debian/rules DESTDIR=$HOME/packages/debian binary
-fi
-- 
2.14.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux