mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-06 10:26:41 +00:00
Exit non-zero from build-all on any build failure
./debian/util.sh build-all will do a number of builds in sequence or parallel. We now track if any of those builds fail to return a .changes file and exit non-zero.
This commit is contained in:
parent
e33b01511b
commit
f7d5eba2ea
4
debian/util.sh
vendored
4
debian/util.sh
vendored
@ -358,6 +358,7 @@ build_all () {
|
||||
echo; echo; echo; echo
|
||||
trap 'echo "Killing children...">&2; for x in $(jobs -p); do kill $x; done' EXIT
|
||||
if [ "${orig:0:2}" = ".." ]; then
|
||||
echo "true" > ../log/builds-ok
|
||||
for distro in $distros; do
|
||||
echo "Creating $distro dsc..." >&2
|
||||
local dsc="$(create_dsc $dsc_opts $distro $orig 2>../log/$distro | tail -n1)"
|
||||
@ -371,6 +372,8 @@ build_all () {
|
||||
echo "Done building $distro-$arch debs." >&2
|
||||
if [ "${changes:0:2}" = ".." ]; then
|
||||
echo "$changes" >> ../log/changes
|
||||
else
|
||||
echo "false" > ../log/builds-ok
|
||||
fi
|
||||
} &
|
||||
$par || wait
|
||||
@ -383,6 +386,7 @@ build_all () {
|
||||
[ -z "$modlist" ] || rm -f $modtmp
|
||||
trap - EXIT
|
||||
cat ../log/changes
|
||||
test "$(cat ../log/builds-ok)" = true || exit 1
|
||||
}
|
||||
|
||||
usage () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user