void-packages/common/travis/build.sh

21 lines
315 B
Bash
Raw Normal View History

#!/bin/sh
#
# build.sh
2015-04-15 11:23:37 +02:00
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))
2020-01-29 23:28:40 +01:00
for pkg in ${PKGS}; do
2022-03-09 22:12:40 +01:00
/hostrepo/xbps-src -j$(nproc) -s -H "$HOME"/hostdir $arch $test pkg "$pkg"
[ $? -eq 1 ] && exit 1
done
exit 0