scripts: install all of the servant ecosystem at once, for consistent dependencies
This commit is contained in:
parent
c87b846815
commit
07f8b6a28a
1 changed files with 4 additions and 4 deletions
|
@ -26,19 +26,19 @@ readarray -t SOURCES < "$SOURCES_TXT"
|
||||||
prepare_sandbox () {
|
prepare_sandbox () {
|
||||||
$CABAL sandbox init
|
$CABAL sandbox init
|
||||||
for s in ${SOURCES[@]} ; do
|
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
|
done
|
||||||
|
$CABAL install --enable-tests ${SOURCES[@]}
|
||||||
}
|
}
|
||||||
|
|
||||||
test_each () {
|
test_each () {
|
||||||
for s in ${SOURCES[@]} ; do
|
for s in ${SOURCES[@]} ; do
|
||||||
echo "Testing $s..."
|
echo "Testing $s..."
|
||||||
cd "$s"
|
pushd "$s"
|
||||||
$CABAL install --only-dependencies --enable-tests
|
|
||||||
$CABAL configure --enable-tests --ghc-options="$GHC_FLAGS"
|
$CABAL configure --enable-tests --ghc-options="$GHC_FLAGS"
|
||||||
$CABAL build
|
$CABAL build
|
||||||
$CABAL test
|
$CABAL test
|
||||||
cd ..
|
popd
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue