git.iko.soy/typeable/servant
on master help sign in
scripts: install all of the servant ecosystem at once, for consistent dependencies
commit07f8b6a28af36ae176b4188d08b822c289bae0b1 authorChristian Marie <christian@ponies.io> dateThu 14 May 2015, 12:35 (11 years ago) parentc87b846
1 file changed+4−4
scripts/test-all.sh+4−4
scripts/test-all.sh+4−4
@@ -26,19 +26,19 @@ readarray -t SOURCES < "$SOURCES_TXT"
2626prepare_sandbox () {
2727 $CABAL sandbox init
2828 for s in ${SOURCES[@]} ; do
29− (cd "$s" && $CABAL sandbox init --sandbox=../ && $CABAL sandbox add-source .)
29+ (cd "$s" && $CABAL sandbox init --sandbox=../.cabal-sandbox/ && $CABAL sandbox add-source .)
3030 done
31+ $CABAL install --enable-tests ${SOURCES[@]}
3132}
3233
3334test_each () {
3435 for s in ${SOURCES[@]} ; do
3536 echo "Testing $s..."
36− cd "$s"
37− $CABAL install --only-dependencies --enable-tests
37+ pushd "$s"
3838 $CABAL configure --enable-tests --ghc-options="$GHC_FLAGS"
3939 $CABAL build
4040 $CABAL test
41− cd ..
41+ popd
4242 done
4343}
4444