void-packages/common/travis/build.sh
Gonzalo Tornaría f7a6688401 common/travis/build.sh: use $test for sort-dependencies
This ensures that checkdepends will be taken into account in the build
order whenever test is enabled.
2024-04-08 08:57:46 +07:00

20 lines
315 B
Bash
Executable file

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