travis retry

This commit is contained in:
Julian K. Arni 2015-06-12 13:34:46 +02:00
parent ab19ea884a
commit 29de4f53d1

View file

@ -24,7 +24,11 @@ prepare_sandbox () {
for s in ${SOURCES[@]} ; do
(cd "$s" && $CABAL sandbox init --sandbox=../.cabal-sandbox/ && $CABAL sandbox add-source .)
done
$CABAL install --enable-tests ${SOURCES[@]}
if $TRAVIS ; then
travis_retry $CABAL install --enable-tests ${SOURCES[@]}
else
$CABAL install -vvv --enable-tests ${SOURCES[@]}
fi
}
test_each () {