From 7ae7d274fcbb460cb665788c222027f76d7af1db Mon Sep 17 00:00:00 2001 From: Greg Weber Date: Mon, 5 Sep 2011 22:36:37 -0700 Subject: [PATCH] ignore test warnings --- install-all.sh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) 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