common/travis: put hostdir in $HOME. simplifies caching.

This commit is contained in:
Enno Boland 2015-04-10 13:31:24 +02:00
parent 2d7c91283d
commit 163ab983b0
4 changed files with 4 additions and 11 deletions

View File

@ -16,7 +16,7 @@ env:
- ARCH=armv7hf
cache:
directories:
- $HOME/repocache
- $HOME/hostdir/repocache
before_cache:
- mv hostdir/repocache/* $HOME/repocache

View File

@ -2,11 +2,4 @@
#
# bootstrap.sh
mkdir -p hostdir/repocache
if [ -d $HOME/repocache ]; then
ln $HOME/repocache/* hostdir/repocache;
else
mkdir -p $HOME/repocache
fi
./xbps-src binary-bootstrap
./xbps-src -H $HOME/hostdir binary-bootstrap

View File

@ -7,7 +7,7 @@ if [ "$1" != x86_64 ]; then
fi
for pkg in $(cat /tmp/templates); do
./xbps-src $arch -C pkg "$pkg"
./xbps-src -H $HOME/hostdir $arch -C pkg "$pkg"
[ $? -eq 1 ] && exit 1
done

View File

@ -5,7 +5,7 @@
for pkg in $(cat /tmp/templates); do
for subpkg in $(xsubpkg $pkg); do
/bin/echo -e "\x1b[32mFiles of $subpkg:\x1b[0m"
./xbps-src show-files "$pkg"
./xbps-src -H $HOME/hostdir show-files "$pkg"
done
done