travis: use ethereal.

Closes: #9396 [via git-merge-pr]
This commit is contained in:
maxice8
2019-03-05 22:47:54 -03:00
committed by Michael Aldridge
parent 32ca5156c4
commit 3f4d1f1555
9 changed files with 56 additions and 37 deletions

View File

@@ -2,16 +2,20 @@
#
# build.sh
[ "$XLINT" ] && exit 0
if [ "$1" != "$2" ]; then
arch="-a $2"
fi
PKGS=$(./xbps-src sort-dependencies $(cat /tmp/templates))
# Tell xbps-src what is our arch, this is done when doing
# binary-bootstrap, but we need to do it every time since
# our masterdir is ethereal.
/bin/echo -e '\x1b[32mWriting bootstrap arch into .xbps_chroot_init of masterdir\x1b[0m'
echo "$1" > /hostrepo/masterdir/.xbps_chroot_init
PKGS=$(/hostrepo/xbps-src sort-dependencies $(cat /tmp/templates))
for pkg in ${PKGS}; do
./xbps-src -H $HOME/hostdir $arch pkg "$pkg"
/hostrepo/xbps-src -H "$HOME"/hostdir $arch pkg "$pkg"
[ $? -eq 1 ] && exit 1
done