From 07f8b6a28af36ae176b4188d08b822c289bae0b1 Mon Sep 17 00:00:00 2001 From: Christian Marie Date: Thu, 14 May 2015 12:35:35 +1000 Subject: [PATCH] scripts: install all of the servant ecosystem at once, for consistent dependencies --- scripts/test-all.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/test-all.sh b/scripts/test-all.sh index 61eef116..3e7d0465 100755 --- a/scripts/test-all.sh +++ b/scripts/test-all.sh @@ -26,19 +26,19 @@ readarray -t SOURCES < "$SOURCES_TXT" prepare_sandbox () { $CABAL sandbox init for s in ${SOURCES[@]} ; do - (cd "$s" && $CABAL sandbox init --sandbox=../ && $CABAL sandbox add-source .) + (cd "$s" && $CABAL sandbox init --sandbox=../.cabal-sandbox/ && $CABAL sandbox add-source .) done + $CABAL install --enable-tests ${SOURCES[@]} } test_each () { for s in ${SOURCES[@]} ; do echo "Testing $s..." - cd "$s" - $CABAL install --only-dependencies --enable-tests + pushd "$s" $CABAL configure --enable-tests --ghc-options="$GHC_FLAGS" $CABAL build $CABAL test - cd .. + popd done }