void-packages/common/travis/build.sh
Érico Rolim b8044ce629 common/travis/build.sh: add argument for running tests.
Also use nproc(1) directly and remove FTP_RETRIES.
2020-12-14 00:18:04 -03:00

21 lines
306 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 sort-dependencies $(cat /tmp/templates))
for pkg in ${PKGS}; do
/hostrepo/xbps-src -j$(nproc) -H "$HOME"/hostdir $arch $test pkg "$pkg"
[ $? -eq 1 ] && exit 1
done
exit 0