aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpbuilder-buildpackage6
-rw-r--r--pbuilderrc2
-rw-r--r--pbuilderrc.54
-rw-r--r--pdebuild6
4 files changed, 18 insertions, 0 deletions
diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage
index e9b0dbb..c39f21d 100755
--- a/pbuilder-buildpackage
+++ b/pbuilder-buildpackage
@@ -171,6 +171,12 @@ if [ -d "${BUILDRESULT}" ]; then
cp -p ${FILE} "${BUILDRESULT}" || true
fi
done
+ if [ -n "${ADDITIONAL_BUILDRESULTS}" ]; then
+ echo "Saving additional results ${ADDITIONAL_BUILDRESULTS[*]}"
+ for FILE in ${ADDITIONAL_BUILDRESULTS[*]}; do
+ cp -a "${BUILDPLACE}/tmp/buildd/"*"/${FILE}" "${BUILDRESULT}" || true
+ done
+ fi
else
log "E: BUILDRESULT=[$BUILDRESULT] is not a directory."
fi
diff --git a/pbuilderrc b/pbuilderrc
index 8774f46..691e46d 100644
--- a/pbuilderrc
+++ b/pbuilderrc
@@ -42,6 +42,8 @@ PBUILDERROOTCMD="sudo -E"
# use cowbuilder for pdebuild
#PDEBUILD_PBUILDER="cowbuilder"
+# additional build results to copy out of the package build area
+#ADDITIONAL_BUILDRESULTS=(xunit.xml .coverage)
# command to satisfy build-dependencies; the default is an internal shell
# implementation which is relatively slow; there are two alternate
diff --git a/pbuilderrc.5 b/pbuilderrc.5
index 40fc8bb..2c77fac 100644
--- a/pbuilderrc.5
+++ b/pbuilderrc.5
@@ -397,6 +397,10 @@ interface. It is usually a good idea, since there are many
software which fail miserably when there is no
.B /proc
being mounted.
+.TP
+.BI "ADDITIONAL_BUILDRESULTS="""
+Array of additional files to copy out of the build area.
+
.SH "AUTHOR"
Initial coding, and main maintenance is done by
Junichi Uekawa <dancer@debian.org>.
diff --git a/pdebuild b/pdebuild
index 97df19b..a98c253 100644
--- a/pdebuild
+++ b/pdebuild
@@ -63,6 +63,12 @@ if [ "${USE_PDEBUILD_INTERNAL}" = 'yes' ]; then
conditional_cp_a ../"$files" "${BUILDRESULT}"
done
conditional_cp_a ../${CHANGES} "${BUILDRESULT}"
+ if [ -n "${ADDITIONAL_BUILDRESULTS}" ]; then
+ echo "Saving additional results ${ADDITIONAL_BUILDRESULTS[*]}"
+ for FILE in ${ADDITIONAL_BUILDRESULTS[*]}; do
+ conditional_cp_a "${FILE}" "${BUILDRESULT}" || true
+ done
+ fi
else
log "E: BUILDRESULT=[$BUILDRESULT] is not a directory."
exit 1