summaryrefslogtreecommitdiff
path: root/round-robin.sh
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2024-01-29 16:48:41 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2024-01-31 08:58:01 +0000
commitbcbe9a19272a3770cf647d258a4d37a303bcf80f (patch)
treec8d3b1791f4f87fdcde4bfaa0645027f9b25d89c /round-robin.sh
parent499f5676b501a31a18ed8afe00cb51c40ebd6451 (diff)
round-robin.sh (build_abe): Enable maitainer_mode in precommit testing
The GNU projects do not require that contributors send the autogenerated files as part of their patches, leading to cases where we can't test such patches because what is posted (what we test) is not what would be committed (what we'll test postcommit). In order to increase coverage of our precommit CI, enable maintainer mode so that such files are regenerated as expected. This implies that the right versions of autoconf and automake are available in $PATH when we invoke ABE. We rely on our docker images to provide them in /usr/local/autoconf-2.69 and /usr/local/automake-1.15.1. Change-Id: Id92785414af1ef0532d3db126db537ed613ee611
Diffstat (limited to 'round-robin.sh')
-rw-r--r--round-robin.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/round-robin.sh b/round-robin.sh
index a67daa77..c1a63018 100644
--- a/round-robin.sh
+++ b/round-robin.sh
@@ -525,6 +525,15 @@ build_abe ()
esac
fi
+ # In precommit testing, enable maintainer_mode so that we
+ # regenerate files as needed. Also update $PATH to include the
+ # right versions of autoconf and automake.
+ if [ "${pw[$project]-}" != "" ]; then
+ stage="$stage --enable maintainer_mode"
+ # No need to export PATH, it is already exported by parent processes
+ PATH=/usr/local/automake-1.15.1/bin:/usr/local/autoconf-2.69/bin:$PATH
+ fi
+
# Carry over any remaining arguments to ABE.
if [ $# != 0 ]; then
stage="$stage $*"