do a cabal update just once
previously was doing it lazily, but multiple times also install testing dependencies right away
This commit is contained in:
parent
2e4eeca102
commit
971ab6ec74
@ -2,13 +2,17 @@
|
|||||||
|
|
||||||
CABAL=cabal
|
CABAL=cabal
|
||||||
|
|
||||||
|
$CABAL update
|
||||||
|
# install testing dependencies
|
||||||
|
$CABAL install HUnit QuickCheck hspec
|
||||||
|
|
||||||
PACKAGES="yesod-core yesod-json yesod-static yesod-persistent yesod-newsfeed yesod-form yesod-auth yesod-sitemap yesod"
|
PACKAGES="yesod-core yesod-json yesod-static yesod-persistent yesod-newsfeed yesod-form yesod-auth yesod-sitemap yesod"
|
||||||
for package in $PACKAGES
|
for package in $PACKAGES
|
||||||
do
|
do
|
||||||
echo Installing $package
|
echo Installing $package
|
||||||
cd $package
|
cd $package
|
||||||
($CABAL configure --enable-tests ||
|
($CABAL configure --enable-tests ||
|
||||||
($CABAL update && $CABAL install HUnit QuickCheck hspec && $CABAL install --only-dependencies && $CABAL configure --enable-tests)
|
($CABAL install --only-dependencies && $CABAL configure --enable-tests)
|
||||||
) && $CABAL build && $CABAL test && ./Setup.lhs install || exit
|
) && $CABAL build && $CABAL test && ./Setup.lhs install || exit
|
||||||
cd ..
|
cd ..
|
||||||
done
|
done
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user