mirror of
https://github.com/typeable/wai.git
synced 2025-01-06 05:25:53 +03:00
Add scripts submodule
This commit is contained in:
parent
6490a16363
commit
38414cd338
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "scripts"]
|
||||
path = scripts
|
||||
url = git://github.com/yesodweb/scripts.git
|
@ -1,48 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
# allow a CABAL env var to override
|
||||
CABAL=${CABAL:-cabal}
|
||||
|
||||
# install testing dependencies
|
||||
$CABAL install HUnit QuickCheck 'hspec >= 0.6.1 && < 0.7'
|
||||
|
||||
# Note: Ignoring wai-handler-devel, wai-handler-webkit
|
||||
pkgs=( wai
|
||||
wai-test
|
||||
wai-extra
|
||||
warp
|
||||
wai-app-static
|
||||
wai-handler-fastcgi
|
||||
wai-handler-launch
|
||||
wai-handler-scgi
|
||||
warp-static
|
||||
)
|
||||
|
||||
# install each sub-respository
|
||||
for pkg in "${pkgs[@]}"; do
|
||||
echo "Installing $pkg..."
|
||||
|
||||
(
|
||||
cd "./$pkg"
|
||||
|
||||
if [ "$1" = "--clean" ]; then
|
||||
$CABAL clean
|
||||
fi
|
||||
|
||||
if ! $CABAL configure --ghc-options="-Wall -Werror"; then
|
||||
$CABAL install --only-dependencies
|
||||
$CABAL configure --ghc-options="-Wall -Werror"
|
||||
fi
|
||||
$CABAL build
|
||||
|
||||
$CABAL configure --enable-tests
|
||||
$CABAL build
|
||||
$CABAL test
|
||||
|
||||
$CABAL check
|
||||
if [ "$1" != "--fast" ]; then
|
||||
$CABAL haddock --executables
|
||||
fi
|
||||
./Setup.lhs install
|
||||
)
|
||||
done
|
1
scripts
Submodule
1
scripts
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 00e2390f2eb601d869e97fc2838cc17f63f0e343
|
Loading…
Reference in New Issue
Block a user