git.iko.soy/typeable/servant
on master help sign in
scripts: install all of the servant ecosystem at once, for consistent dependencies
07f8b6aChristian Marie
scripts/test-all.sh+4−4
@@ -26,19 +26,19 @@ readarray -t SOURCES < "$SOURCES_TXT"
26prepare_sandbox () {
26prepare_sandbox () {
27 $CABAL sandbox init
27 $CABAL sandbox init
28 for s in ${SOURCES[@]} ; do
28 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 .)
30 done
30 done
31+ $CABAL install --enable-tests ${SOURCES[@]}
31}
32}
32
33
33test_each () {
34test_each () {
34 for s in ${SOURCES[@]} ; do
35 for s in ${SOURCES[@]} ; do
35 echo "Testing $s..."
36 echo "Testing $s..."
36− cd "$s"
37+ pushd "$s"
37− $CABAL install --only-dependencies --enable-tests
38 $CABAL configure --enable-tests --ghc-options="$GHC_FLAGS"
38 $CABAL configure --enable-tests --ghc-options="$GHC_FLAGS"
39 $CABAL build
39 $CABAL build
40 $CABAL test
40 $CABAL test
41− cd ..
41+ popd
42 done
42 done
43}
43}
44
44