common/travis: put hostdir in $HOME. simplifies caching.
This commit is contained in:
parent
2d7c91283d
commit
163ab983b0
|
@ -16,7 +16,7 @@ env:
|
|||
- ARCH=armv7hf
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/repocache
|
||||
- $HOME/hostdir/repocache
|
||||
before_cache:
|
||||
- mv hostdir/repocache/* $HOME/repocache
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue