void-packages/common/travis/build.sh
classabbyamp 60dd0293ef
common/travis/build.sh: don't set -e
xbps-src intentionally exits non-zero if broken or nocross, so let it do
that, as error exits are handled in the script.

fixes: #54561
2025-03-02 19:37:10 -05:00

20 lines
282 B
Bash
Executable file

#!/bin/bash
#
# build.sh
if [ "$1" != "$2" ]; then
arch="-a $2"
fi
if [ "$3" = 1 ]; then
test="-Q"
fi
PKGS=$(./xbps-src $test sort-dependencies $(cat /tmp/templates))
for pkg in ${PKGS}; do
./xbps-src -j$(nproc) -s $arch $test pkg "$pkg"
[ $? -eq 1 ] && exit 1
done
exit 0