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 - ARCH=armv7hf
cache: cache:
directories: directories:
- $HOME/repocache - $HOME/hostdir/repocache
before_cache: before_cache:
- mv hostdir/repocache/* $HOME/repocache - mv hostdir/repocache/* $HOME/repocache

View File

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

View File

@ -7,7 +7,7 @@ if [ "$1" != x86_64 ]; then
fi fi
for pkg in $(cat /tmp/templates); do 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 [ $? -eq 1 ] && exit 1
done done

View File

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