update install-all.sh for testing dependencies

This commit is contained in:
Greg Weber 2011-08-11 09:58:26 -07:00
parent aced8dc8a6
commit ee031c2ad7

View File

@ -1,14 +1,14 @@
#!/bin/sh
PACKAGES="yesod-core yesod-json yesod-static yesod-persistent yesod-newsfeed yesod-form yesod-auth yesod-sitemap yesod"
CABAL=cabal
PACKAGES="yesod-core yesod-json yesod-static yesod-persistent yesod-newsfeed yesod-form yesod-auth yesod-sitemap yesod"
for package in $PACKAGES
do
echo Installing $package
cd $package
($CABAL configure --enable-tests ||
($CABAL update && $CABAL install --only-dependencies && $CABAL configure --enable-tests)
($CABAL update && $CABAL install HUnit QuickCheck hspec && $CABAL install --only-dependencies && $CABAL configure --enable-tests)
) && $CABAL build && $CABAL test && ./Setup.lhs install || exit
cd ..
done