sandbox: [ -d .cabal-sandbox ] || cabal sandbox init && cabal update hlint: sandbox if [ -z "$$(which hlint)" ]; then \ echo hlint not found in PATH - install it; \ exit 1; \ else \ hlint .; \ fi tests: sandbox cabal install --dependencies-only --enable-tests --force-reinstalls cabal configure --enable-tests --enable-coverage cabal build cabal test --show-details=always ci: tests hlint ci_after_success: if [ -z "$$(which hpc-coveralls)" ]; then \ echo hpc-coveralls not found in PATH - install it; \ exit 1; \ else \ hpc-coveralls --display-report tests; \ fi