travis-ci: check cabal cache directory.

This commit is contained in:
Kei Hibino 2017-02-01 18:31:26 +09:00
parent 283431e244
commit fc1fc0ac6c

View File

@ -12,12 +12,14 @@ echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo
## In package list cache hit case, cabal install may fail
(
cd $HOME/.cabal/packages/hackage.haskell.org/
rm -f \
00-index.tar.gz.etag \
00-index.tar.gz \
00-index.tar \
00-index.cache
if [ -d $HOME/.cabal/packages/hackage.haskell.org/ ]; then
cd $HOME/.cabal/packages/hackage.haskell.org/
rm -f \
00-index.tar.gz.etag \
00-index.tar.gz \
00-index.tar \
00-index.cache
fi
)
custom_retry cabal update -v