haskell-relational-record/travis-CI/sh-lib

23 lines
442 B
Bash

## -*- sh -*-
custom_retry() {
i=0
until "$@" ; do
if [ $i -ge 3 ]; then
break;
fi
sleep 1
i=$(expr $i + 1)
done
}
cabal_common() {
cat <<EOF
remote-repo: hackage.haskell.org:http://hackage.haskell.org/packages/archive
remote-repo-cache: ${HOME}/.cabal/packages
world-file: ${HOME}/.cabal/world
build-summary: ${HOME}/.cabal/logs/build.log
remote-build-reporting: anonymous
EOF
}