diff --git a/install-all.sh b/install-all.sh index 94d6e556..918522e0 100755 --- a/install-all.sh +++ b/install-all.sh @@ -30,15 +30,24 @@ for pkg in "${pkgs[@]}"; do ( cd "./$pkg" - if ! $CABAL configure --enable-tests --ghc-options="-Wall -Werror"; then - $CABAL install --only-dependencies - $CABAL configure --enable-tests --ghc-options="-Wall -Werror" + if [ $1 == "--clean" ]; then + $CABAL clean fi + if ! $CABAL configure --ghc-options="-Wall -Werror"; then + $CABAL install --only-dependencies + $CABAL configure --ghc-options="-Wall -Werror" + fi + $CABAL build + + $CABAL configure --enable-tests $CABAL build $CABAL test + $CABAL check - $CABAL haddock --executables + if [ $1 != "--fast" ]; then + $CABAL haddock --executables + fi ./Setup.lhs install ) done